Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

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', '...
Sam Jaques's user avatar
Advice
0 votes
4 replies
133 views

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/...
WGroleau's user avatar
  • 455
0 votes
2 answers
125 views

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 ...
Alex's user avatar
  • 1
3 votes
3 answers
114 views

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 ...
Clodoaldo Neto's user avatar
Advice
0 votes
7 replies
115 views

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 ...
dahallor's user avatar
1 vote
0 answers
198 views

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 ...
Soren V. Raben's user avatar
1 vote
0 answers
45 views

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 [...
Apostla's user avatar
  • 127
1 vote
2 answers
178 views

I have this profile settings.json: { "terminal.integrated.profiles.osx": { "python-venv": { "path": "/opt/homebrew/bin/bash", ...
Kenny83's user avatar
  • 931
0 votes
1 answer
121 views

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 ...
Gulzar's user avatar
  • 28.8k
0 votes
1 answer
69 views

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 ...
Steve Cohen's user avatar
  • 4,909
1 vote
1 answer
131 views

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 ...
Joshie's user avatar
  • 23
0 votes
1 answer
87 views

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 ...
Debabrata Bardhan's user avatar
0 votes
0 answers
373 views

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 ...
cast's user avatar
  • 21
0 votes
0 answers
229 views

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 ...
Paul Jurczak's user avatar
  • 8,630
3 votes
1 answer
3k views

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 ...
shamalaia's user avatar
  • 2,431
0 votes
2 answers
226 views

situation I created a new Python project with pixi venv. I have this isolated venv, including Python. I installed pandas etc. I didn't install plotly etc. I have Python installed globally. The ...
Nor.Z's user avatar
  • 1,605
-5 votes
3 answers
6k views

I want to set up a new Python project and use uv for package management. I don't have it installed on my global system, so I can't initialize an virtual env with uv venv The only solution I see now ...
kerf's user avatar
  • 3
1 vote
1 answer
115 views

I'm developing a CLI application with Python and I can install it with pip install -e . for an editable install, however this installs it only in the virtual environment. I can't access the CLI from ...
1j01's user avatar
  • 4,298
0 votes
1 answer
65 views

I'm trying to run NetBox in a remote installation of VS Code Server on a Ubuntu VM. I have a venv activated, and in VS Code I'm pointing to venv/bin/python as the the interpreter. Despite all of this, ...
Colin Lacy's user avatar
1 vote
1 answer
325 views

I need help to install a package using apt install in the Raspberry Pi using the Python version I installed using pyenv. I already tried using pip, but the installation fails. The specific package I ...
JackOA's user avatar
  • 59
0 votes
0 answers
79 views

I'm trying to send a message to Slack using Python and the slack_sdk library, but I'm getting an import error. from slack_sdk import WebClient from slack_sdk.errors import SlackApiError The IDE (VS ...
ALopes's user avatar
  • 1
0 votes
0 answers
372 views

I'm using pixi for Python in vscode. In a normal terminal I can run pixi shell and exit, just like .venv\Scripts\activate & deactivate to enter or leave the venv. But in vscode, I am forced to ...
Nor.Z's user avatar
  • 1,605
2 votes
0 answers
176 views

I have cloned this Github repo into VSCode in order to start a new project. While trying to create a virtual environment with venv, VSCode detected the requirements.txt and asked me for permission to ...
user26598303's user avatar
2 votes
1 answer
108 views

The native Python package venv is "recommended for creating virtual environments". I read that as saying that the Python Foundation wants users to switch from third party solutions like ...
Roofus's user avatar
  • 656
0 votes
0 answers
91 views

I've recently updated vscode to the most recent version, and whenever I open up a new shell or cmd it activates the venv in that directory, and that's fine and expected as before. But now it doesn't ...
Mohamed Hany's user avatar
-2 votes
1 answer
175 views

I am working on a grading automation tool for programming assignments. Each student submission is run in its own isolated virtual environment (venv), and dependencies are installed from a requirements....
Ebrahim Al-Aghbari's user avatar
0 votes
0 answers
28 views

I am debugging my package written in python from venv. Such that the repo source files, where the changes the the source appear are different from the source files installed in venv. Is it somehow ...
Student4K's user avatar
  • 960
0 votes
0 answers
261 views

I want to use Jupyter Notebook feature. My virtual environment can run an ipykernel without issues (on code as well). When I try importing a package, it acts as if the package doesn't exist. e.g. ...
juxyper's user avatar
  • 35
0 votes
1 answer
100 views

Following is the error received while trying to set python-venv or npm-init in visual-studio-code. cannot be loaded because running scripts is disabled on this system. For more information, see ...
herbert moses's user avatar
2 votes
0 answers
49 views

I’ve been working on a project for a while but all of a sudden my .venv broke. Initially it created duplicates of a bunch of files inside .venv/lib, (e.g. file, file 2, file 3, ...), so I deleted the ...
theresjustnotime's user avatar
4 votes
5 answers
336 views

Best practice for Python is to use venv to isolate to the imports you really need. I use python -m venv. For development, it's very convenient to use IPython and notebooks for exploring code ...
SRobertJames's user avatar
  • 9,367
0 votes
1 answer
74 views

This is more of a where in pip could this be happening, not a question about the repos/packages. I'm building several pytorch related repos using their setup.py scripts. For example, https://github....
NorseGaud's user avatar
  • 801
-1 votes
1 answer
48 views

I've got a script which when called via (.venv) PS D:\Users\user4\MyPython\AllDiscs> py -m list_discs_with_folders dlist.txt works as desired, but fails when called as a subprocess from another ...
Titus's user avatar
  • 1
0 votes
0 answers
19 views

I am using a M2 Macbook Pro. conda 24.9.2. Python 3.12. Why the command "python" is not "localized"? conda create -n f5-tts python=3.10 conda activate f5-tts which pip => /opt/...
Dustin Sun's user avatar
  • 5,540
1 vote
1 answer
455 views

I'd like to get Open WebUI working with Ollama on Ubuntu 24.10, but installing it using pip and venv leads me to a torch error. Firstly, Ollama (0.6.2) is working: I can type /path/to/ollama list and ...
user2023370's user avatar
  • 11.3k
2 votes
0 answers
44 views

My query is while switching projects how we change python interpreter to that specific project .venv shown in bottom right & the (.venv) in terminal? Situation I have project1 with .env1 as venv I ...
yashpreet's user avatar
-1 votes
2 answers
272 views

So yesterday i noticed that the vscode terminal was using the global pip instead of the pip in my virtual environment when trying to use pip or package commands. Running the python file is no problem. ...
Mathis H.'s user avatar
0 votes
0 answers
130 views

I am trying to write a Python script on an Ubuntu box. I had it working fine on another box, but now I cannot get it to install some libraries. I keep getting the "externally-managed-environment&...
d0dja's user avatar
  • 11
1 vote
3 answers
273 views

My system has Vim preinstalled although I also installed it with homebrew. I noticed when I run the following command in Vim: :py3 import sys; print(sys.executable) it gives an output of /opt/...
Christos Andreopoulos's user avatar
0 votes
2 answers
957 views

I have a Python virtual environment (created with venv) kept in a directory in my project. I created it and sourced the activate script. I am sure that it worked, because my terminal prompt starts ...
Nate T's user avatar
  • 869
0 votes
0 answers
15 views

I just added a new kernel to Juypter Notebook using: python -m ipykernel install --user --name=venv3.12 and edited the path of Python to the Python executable at a venv folder. The contents of the ...
Raptor's user avatar
  • 54.4k
0 votes
0 answers
73 views

When I create a virtual environment using Venv in Visual Studio Code--either using Cmd + Shift + P or via the command line--I notice the following prompt in the integrated Zsh terminal: .venvusername@...
butterfly_2478's user avatar
0 votes
1 answer
630 views

I have an Ansible playbook using a role that should do some basic Linux setup tasks. OS: Oracle Linux 9.5 (so, basically RHEL) Ansible 2.14 ansible.posix 1.5.4 (hard dependency) Python 3.9 Ansible ...
Uwe's user avatar
  • 31
2 votes
0 answers
125 views

Is there a way to activate a Python venv with one command that works on Windows and Unix? The standard commands are: Windows: venv\Scripts\Activate.ps1 Unix: source venv/activate (There's a handy ...
Timmmm's user avatar
  • 99.2k
0 votes
1 answer
169 views

I am currently facing a really frustrating problem with installing tensorflow federated. I am on M2 Macbook Air, using virtual env, no conda. I was following this tutorial, and did the following: ...
ricky11's user avatar
  • 68
0 votes
2 answers
221 views

I have a problem, with django and apache (mod_wsgi), I get the browser error "too many redirects". Here my files and apache configuration project tree ├── db.sqlite3 ├── djangoProject │   ├──...
luna80's user avatar
  • 153
0 votes
1 answer
72 views

I'm trying to install any packages to venv, but the pip install command's target directory is always /opt/homebrew/lib/python3.12/site-packages/, but I'd expect it to be something under venv. Here is ...
JaytheInj's user avatar
-1 votes
2 answers
72 views

I get the ModuleNotFoundError: no module named 'mysql' error when I run a Python script. I am a novice to Python programming. The mysql-connector was installed via environment (python3 -m venv env). ...
cabwav's user avatar
  • 15
0 votes
0 answers
50 views

I wrote a python script initialized using poetry to connect to Gdrive API and dockerized it using this Dockerfile : # First stage: build the application FROM python:3.10.2-slim as builder # Set the ...
Safus09's user avatar
  • 111
8 votes
2 answers
6k views

On a Windows machine, I'm developing a Python project that I manage using uv. I run the unit tests with uv run pytest, and uv automatically creates a virtual environment in .venv. So far, so good. But ...
Martin's user avatar
  • 411

1
2 3 4 5
32