All Questions
40 questions
0
votes
0
answers
678
views
Why is mypy issuing import-not-found errors on every single import?
I am writing a simple Python application using FastAPI. I am using pdm as my package manager which means I have a pyproject.toml file and a pdm.lock file. I also using pyenv to manage both versions of ...
0
votes
0
answers
67
views
Installation of “pyenv”, “pyenv-virtualenv” and “pyenv-virtualenvwrapper” on a MacBook with M1 processor
this is the first time I'm asking a question on Stack Overflow and I apologize in advance for any mistakes.
On my work PC (Windows) I use the virtualenvwrapper to create virtual environments for my ...
1
vote
1
answer
1k
views
pip and system python (3.12.4) don't work properly anymore after installing pyenv
I installed pyenv to run an old code on python 3.7.17. Now I need to go back to version 3.12.4 which is the system python (before installing pyenv). But right now I can't even run pip :/
➜ ~ pip ...
0
votes
0
answers
188
views
How to manage virtual environments with pyenv?
Scenario
I would like to start a new project in python. I need a different version of python than the one on my system (Ubuntu 23.10), so I followed the steps below:
I downloaded pyenv and installed ...
0
votes
1
answer
382
views
VSCode task with pyenv and zsh
I'm having an issue with configuring tasks for VSCode while using pyenv-virtualenv (not virtual env!), kind of similar to this but it is not solved and it also refers only to .zshrc not .zprofile.
I ...
0
votes
0
answers
121
views
When I change the Python version, the version in the system does not change
I have a problem which is related to system python version vs global/local python version. I use Python version manager, my purpose here is to create a virtual environment and use different Python ...
1
vote
1
answer
708
views
MLFlow install Python 3.10.12 with pyenv-win?
I'm working with MLFlow 2.7.1 on Windows 10 and when I try to serve a model via mlflow serve it tries to use Pyenv to install Python 3.10.12. I installed the latest version of Pyenv Win with pip and ...
0
votes
0
answers
183
views
Why Python version is not been shown correctly when using pyenv for Python environments?
I have installed pyenv in MacOS Sonoma 14.1.1 version. I have added the following to ~/.zshrc and ~/.bashrc files according to this answer:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="...
3
votes
2
answers
1k
views
Is there a difference between pyenv activate and pyenv local?
I know that to activate a virtual environment with pyenv, we can run pyenv activate [virtualenv], but here, i also saw that we can "select" a virtual environment by running pyenv local [...
0
votes
2
answers
5k
views
How to downgrade python 3.11.3 to python 3.9 on Linux mint
I have a python library I need python 3.9 to run. However, the default python that came with my system is 3.11.3 (as found by doing python --version). I need python to be downgraded, but I can't ...
-1
votes
1
answer
211
views
PyPI cannot depend on packages which are not also hosted on PyPI
I'm trying to install the molecular-builder python package using a virtual environment as recommended on their installation instructions however I keep running into this error:
(base) bradley@bradley-...
1
vote
1
answer
5k
views
Pyenv local version overrides all other Python versions regardless of 'global' or 'local' commands
Brief Background: macOS is Ventura 13.2.1 and the system's Python is version 3.11.2.
If I type pyenv versions in my terminal, I get
system
* 3.9.16 (set by /Users/usersname/.python-version)
3.10....
1
vote
0
answers
339
views
pyenv versio 3.8.6 failing installing on mac m1 version 12.4
i am running into an error, what many people already have faced. The big problem is, no matter what I am trying the installation is showing the same error again and again.
Maybe someone can help me.
...
0
votes
0
answers
24
views
Keep installed packages between patch updates
Using pyenv is there a way to keep packages installed for a version when upgrading to a different patch release? E.g. suppose I installed IPython with 3.11.1 and now am installing 3.11.2, but want to ...
2
votes
0
answers
650
views
How should pyenv interface with Conda environments?
I saw on the Internet that we should use pyenv to avoid affecting the system Python. I know we can use pyenv-virtualenv to create a virtual environment. However, Conda can also be used to create ...