Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [python-venv]

Many questions here will have to do with how to setup virtual development environments for Python using the venv command (new as of Python 3.3), the differences between venv and other common packages, such as virtualenv, and the interaction between these virtual environments and other parts of your development system.

python-venv
-1 votes
1 answer
41 views

Pip installs packages globally inside of virtual environment

I am at a loss so I apologise if this is a repeated question. I have currently set up a virtual environment via the command python3 -m venv .env and attempted to install a package that is local to ...
Bobstar89's user avatar
-1 votes
0 answers
9 views

Issue installing building Streamlit dependencies

I am using a 3rd party developed Streamlit app and we have recently migrated to new tech stack. The app will not build the virtual environment. The error is " NameError: name 'file' is not ...
Dwinny 's user avatar
0 votes
0 answers
24 views

Running python scripts within pyinstaller without venv

I have created an application with pyinstaller that builds to a Windows executable, so a user can open it and from a friendly UI select a python script from a list, and then run it (all within this ...
esalberg's user avatar
0 votes
0 answers
149 views

ModuleNotFoundError: No module named 'paramiko.auth_strategy' while using fab2 python

I'm trying to execute a python task using fab. I've installed fab2 for python3 and trying to use it to run the task in a venv. Unfortunately using fab2 keeps giving me this error: (venv) My-MacBook-...
scottstots's user avatar
-1 votes
1 answer
63 views

I can't get pip on my python3 venv on Ubuntu 24.04

I have a fresh install of Ubuntu 24.04. I added pip with the usual sudo apt install python3-pip, and went to install some packages, but got the error: externally-managed-environment. This was all ...
Colin T Bowers's user avatar
3 votes
0 answers
37 views

Python venv creation fails due to ensurepip and zlib issues

I'm unable to create a Python virtual environment via venv in which I can install dependencies via pip. These issues occur on a clean install of Ubuntu 24.04 LTS. I specifically want to use Python's ...
Just10's user avatar
  • 31
0 votes
0 answers
7 views

Python Subprocess - import file not found. I am able to execute child independently

I am on Python 3.12 and use venv. I have done pip install of PyMuPDF and able to use fitz pdf reader directly. However when I use subprocess to invoke the same program, i get an error that fitz not ...
user6333565's user avatar
0 votes
1 answer
26 views

.py-script only runs via terminal and not with the "run"-button of Pycharm

I created a new Python project in PyCharm using a virtual environment. This is my first time using virtual environments, and I am still a beginner with Python and PyCharm. For some reason, Python can'...
Jules's user avatar
  • 1
-3 votes
1 answer
49 views

I get an error with requests only when using venv

It was working fine until yesterday, but suddenly it's not working. When using virtualenv, I get an error when using requests to make a response. When using the global Python, it works fine. Why is ...
ahhu's user avatar
  • 13
1 vote
0 answers
37 views

Why pip list shows packages installed in venv after deactivating venv?

I am trying to lear how python venv works and it is really confusing. I am using VSCode. First, I am in a empty directory C:\Users\...\Django and when I list my libraries I get: PS C:\Users\...\Django&...
python3 programmer's user avatar
0 votes
0 answers
25 views

importing external modules in virtual environment in Python is slow

I am testing using virtual environment in windows 11 with vscode. I have created a virtual environment (called .venv). I have activated the environment (.venv\Scripts\activate). I then pip install ...
darren's user avatar
  • 5,313
0 votes
0 answers
32 views

Pyinstaller: problem with imports and reading/writting files

I am creating a discord bot for a, private, small server, with friends. I would like the bot to be runable by any of my friends, none of whom know much about programming. My idea was to bundle it up ...
Juan Ignacio's user avatar
2 votes
1 answer
65 views

Should I put Django venv directory in .gitignore?

In my book Python Crash Course 2nd edition it is recommended to put ll_env (venv directory) in .gitignore. It says, "We tell Git to ignore the entire ll_env directory, because we can re-create it ...
Coder4Fun250's user avatar
2 votes
1 answer
66 views

Python with venv - Packages downloaded with pip not showing up in "list" (downloaded in the system path...)

I've read several topics and docs on this subject and could not find an "easy" solution for me as I am quite a beginner with Python. I created a Python virtual environment through venv (on ...
zebu14's user avatar
  • 59
0 votes
2 answers
40 views

Same venv in different workflow jobs

I would like to allow two jobs to run in parallel and both use the same environment. I have attached a sample github actions .yml file with comments to better explain what I need. I am new to the ...
VaporProBuild's user avatar

15 30 50 per page
1
2 3 4 5
102