7,531 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
111
views
Build wxPython in a virtual environment, Python 3.14 Debian 13
I am trying to build wxPython in a virtual environment. Debian 13 does not come with Python 3.14. I have installed Python 3.14 in a virtual environment. I have installed the dependencies and it seems ...
1
vote
1
answer
130
views
Pip wont let me install user local packages with --user any more, shows externally managed env error [duplicate]
I have used --user in the past to not have to deal with virtualenvs in the past, but I cant seem to do it now, presumably on a different python version..
$ pip install --user esphome
error: externally-...
Advice
0
votes
7
replies
113
views
How to import an editable package?
I've installed a package from a cloned repository, in "editable" mode (pip install -e .). I can't import the package in a script in the virtual environment where the package in installed (...
Advice
0
votes
4
replies
145
views
python3.14 returns error but output is still correct
I had a python program that I could not get to work until I put it in a virtual environment. Since I use it a lot, I put the following in a zsh script:
python3 -m venv ~/bin/pypath/venv
source ~/bin/...
Advice
0
votes
7
replies
139
views
Is it possible to auto select a Python venv without using the terminal or VSCode?
Ok so I am the only technical person at a non-technical company. I am writing some scripts that I will be disseminating to my team. My goal is for everyone else on the team to be able to right click ...
1
vote
1
answer
97
views
Not able to build opencv manually in python env
I am trying to build opencv from it's github repo manually and use it in the virtual python environment. I am unable to import opencv.
Previously I got the error as mentioned Here. The solution is to ...
Advice
0
votes
3
replies
97
views
Vim 9.1 & Python Virtual Env
I'm writing vim-script(s) that utilizes vim's embedded Python environment. One of these requires the Python Environment to utilize a virtual environment. Ideally for this application, vim would ...
-2
votes
1
answer
104
views
ModuleNotFoundError: No module named 'kiwisolver' -- yet Requirement already satisfied: kiwisolver in /usr/lib/python3/dist-packages (1.3.2) [duplicate]
I can run a config software from a virtual environment that ends up with the following error:
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return ...
0
votes
0
answers
60
views
How to safely fix and migrate pip3 packages installed and run using sudo/root/local users to a safe pip3 virtual environment (venv)?
I am running an Ubuntu 24.04 Lemp Server, and I'm not sure I fully understand pip3 and how it works. When installing certain python3-pip packages, some of them required being installed and run as root ...
0
votes
0
answers
58
views
Unable to make python virtual env work with jupyter
I followed the instructions from https://stackoverflow.com/a/58134257/31654471:
(qiskit) C:\Users\erick> ipython kernel install --user --name=qiskit
Installed kernelspec qiskit in C:\Users\erick\...
1
vote
1
answer
91
views
python virtualenv without losing apt-installed modules
How can I create a python Virtual ENVironment (venv) such that the new venv has all of the python modules that are already installed on my system (with apt)?
π Note: It's much more secure to install ...
1
vote
2
answers
71
views
Custom Python module development environment installation
I would like to make a simple python script, that will create a virtual environment, then activate that environment, install pip modules from a req.txt file in the same shell that I just activated ...
0
votes
0
answers
68
views
Confusion about virtual environment and kernels in jupyter notebook
I created a virtual environment called "fastai" by conda. I tried to install ipywidgets in it by
mamba install ipywidgets
Then I checked it and it did exist. But when I used
jupyter --...
-2
votes
1
answer
89
views
Activate virtualenv in .envrc in poetry managed project
I want to activate a Python virtual env by changing into a directory.
This should activate the virtual env:
cd ~/projects/myproject
The project gets managed with poetry.
Background: I am too lazy to ...
0
votes
0
answers
141
views
Installing virtualenv globally with Homebrew
I am trying to build someone else's project that relies on the virtualenv package. On Mac OS with Homebrew, the python environment is externally managed, so I can't "globally" install ...