All Questions
Tagged with pyenv python-venv
31 questions
2
votes
0
answers
874
views
MACOS - No module named 'mmcv._ext'
i am having trouble using the mmcv dependency.
Although it appears to be installed correctly, when I try to run my pytho script, I get the following error:
python .dev_scripts/check_installation.py
...
0
votes
1
answer
226
views
Requirements not installed in a python virtual environment
I'm using Ubuntu 22.04 on WSL, I have installed python 3.7.17 with pyenv.
If I run $HOME/.pyenv/versions/3.7.17/bin/python -m venv $HOME/virtualenv/websites/web/myproject it correctly creates a ...
0
votes
0
answers
523
views
python pip disappearing from venv "no module named pip"
Recently my pip seems to have weird behaviour.
First When I set up my virtual environment using python3 -m venv env everything works fine and I can use pip to install packages once I activate the ...
0
votes
2
answers
270
views
ansible.netcommon.network_cli does not use python in venv
I am using pyenv and venvs and poetry for my ansible setup.
Recently I removed system pip installed files. New thing in Debian 12, you can't install pkgs through pip anymore without forcing them.
I ...
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....
2
votes
0
answers
507
views
How can I improve my python environment setup on windows 10?
This is my current python environment setup on Windows 10:
For the remainder of this post I will assume you have chocolatey installed. Also I'm using the bash as admin terminal from cmder.
Install ...
0
votes
1
answer
267
views
Running python as root using new pyenv and venv
Python applications currently are being run as root.
These applications are in a cron job.
They are called using /usr/bin/python3 app1.py
I want to setup a new venv for a new application using a ...
0
votes
0
answers
25
views
Why do I have two different python envs linked?
I'm using pyenv with python version 3.9.1
I have two projects. I created virtualenv for each of them with "python -m venv env".
When I install tox in one env, I can use it in the other.
When ...
7
votes
2
answers
3k
views
How to upgrade pyenv (macOS) such that a fresh .venv contains an up-to-date pip?
I'm trying to prevent this warning every time I create a fresh .venv:
> /Users/pi/.pyenv/versions/3.10.0/bin/python -m venv .venv
> . .venv/bin/activate
> pip install ipykernel # or ...
0
votes
0
answers
599
views
Python version management and venv - how to make the env folder available inside a project folder using pyenv?
I have a project that I want to work in a different Python version from my OS.
In this example my OS is Ubuntu 22 - Python 3.10.4 and I want to create a project using Python 3.8.4.
When we want to ...
1
vote
1
answer
240
views
pip and python referring to different interpreters
I know "multiple-versions-of-python-mess" is nothing new but my question is more specific. I'm learning how to use venv (and pyenv, etc.) and I've run into a strange situation.
I have a ...
2
votes
1
answer
3k
views
Pip installs packages in pyenv root even when virtual environment is activated
I try to install a package with pip in a virtual environement previously created with venv. The Python version is managed through pyenv. I don't want to use pyenv to create the virtual environment.
...
1
vote
1
answer
448
views
Install specific version of python in a nfs path
Hi need to install a specific version of python in nfs path that will be shared across multiple systems.
Users in each systems need to activate using virtual env and use it.
How can we achieve it ...
20
votes
4
answers
33k
views
Using Poetry with PyEnv and having Python version issues
I'm working on WSL2 Ubuntu. I've been taking a course in backend API development using Fastapi. My Ubuntu default python is 3.8 I believe. I'm trying to use python 3.10.0 for my development. I've done ...
0
votes
1
answer
47
views
pipenv under pyenv fails to upgrade its instance under pyenv
After brew upgrading pipenv in MacOS
==> Installing pipenv
==> Pouring pipenv--2022.1.8.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/pipenv/2022.1.8: 1,767 files, 28MB
I see that the version of ...