1,552 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
70
views
Python venv command failing on MacOS with Homebrew
I've been happily using python with venv for at least the last year. It now no longer works:
python -m venv .
returns the error:
Error: Command '['/Users/sejaques/bin/python3.13', '-m', 'ensurepip', '...
Advice
0
votes
4
replies
141
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/...
1
vote
2
answers
192
views
PyCharm keeps using a non-existent Python 3.14 interpreter even after removing it from the system
I’m on Windows 11 and originally had two Python installations: 3.14 and 3.9.
Both were installed and added to the PATH.
After setting up PyCharm 2025年2月4日, I started getting this error when creating a ...
3
votes
3
answers
117
views
Python requests.request returning garbage
Calling an api. For almost all calls the response comes clean but for a few there is garbage in the returned json. Executing the garbage one in the Firefox browser with the same parameters returns ...
Advice
0
votes
7
replies
133
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
0
answers
209
views
Jupyter/VSCode does not recognize pip from .venv despite being properly installed
EDIT: the issue is resolved (kinda). Check GitHub discussion. It turns out that there are possibly two problematic factors. First (my case), the newest version of Jupyter extension. When I switched ...
1
vote
0
answers
46
views
Python virtual environment activated with incorrect path windows
I created a Python virtual environment on Windows, but when the virtual environment is activated, my Python path still references my global Python.
PS C:\PATH_TO_PROJECT> cmd
Microsoft Windows [...
1
vote
2
answers
178
views
How can I create a Python venv within a Bash script and then activate it immediately, all from a VS Code profile's settings.json?
I have this profile settings.json:
{
"terminal.integrated.profiles.osx": {
"python-venv": {
"path": "/opt/homebrew/bin/bash",
...
0
votes
1
answer
147
views
Pycharm 2025.2 pro WSL interpreter not running [closed]
I have created a venv interpreter using python -m venv venv and another using poetry
I pointed pycharm to these interpreters (separately), and it claims to see them
Then, running the simplest program ...
0
votes
1
answer
74
views
How can one python script launch another python script using a different virtual environment?
I have researched this question and found Running subprocess within different virtualenv with python, but my situation is a little different.
I have an astrophotography application which I run on ...
1
vote
1
answer
154
views
Import "llama_index.llms.ollama" could not be resolved
I have the following imports for a python file thats meant to be a multi llm agent soon. I wanted to use llama_index and I found a nice video from Tech with Tim which explains everything very well. I ...
0
votes
1
answer
90
views
conda activate venv is not working on vscode
I have installed vscode and miniconda(python version 3.13.5). Also I have created my virtual environment by the command "conda create" where python version is 3.10.1.
I am facing an issue ...
0
votes
0
answers
425
views
ERROR: Will not install to the user site because it will lack sys.path precedence ... using venv inside docker
I am having troubles building docker from ubuntu:24.04, Python version 3.12.3 and pip 25.1.1.
Since the recent (I think) defualt pip behavior throwing
error: externally-managed-environment
when ...
0
votes
0
answers
235
views
VS Code doesn't open Python virtual environment
I'm using Python 3.13.5 with VS Code 1.102.0 on Ubuntu 24.04.2. With VS Code updates, there were often problems with opening venv environment, but usually reloading VS Code was sufficient to make it ...
3
votes
1
answer
3k
views
Activate 'uv' environment - 'venv' mismatch
I am trying to set up an environment in Visual Studio Code for a Python project using uv on Ubuntu.
I have tried different sequences of actions, but without success. Here is the latest one:
uv init
uv ...