Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
2 replies
69 views

Is there any way to reduce the size of my virtual environments - I have a relatively simple django website - the most complex parts are probably using weasyprint to save a page as PDF, and using the ...
Tony Suffolk 66's user avatar
Advice
0 votes
1 replies
32 views

mansur@mansur:~/Documents/CS$ source /home/mansur/Documents/CS/.venv/bin/activate bash: /home/mansur/Documents/CS/.venv/bin/activate: No such file or directory I switched to linux like 1 month ago ...
Mansur Rahmanov's user avatar
Tooling
0 votes
0 replies
109 views

I feel sure I'm overlooking something fairly obvious... I am using VSCode (1.109.5) on Windows with Remote SSH(0.122.0) to a Debian (12 Bookworm) remote server. I doubt the versions are especially ...
aSteve's user avatar
  • 2,076
0 votes
0 answers
28 views

I use python with virtual environments on manjaro linux. I install the package python-virtualenvwrapper, then I added export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/...
matkoh's user avatar
  • 11
1 vote
2 answers
73 views

I’m setting up a Django + Channels project and I think I messed up the order. I ran these commands: cd ~ mkdir social_mvp cd social_mvp mkdir socialsite mkdir core mkdir -p core/templates/core mkdir -...
rexyrzi's user avatar
  • 35
-1 votes
0 answers
106 views

I'm trying to install mysqlclient on MacOSx Sequoia with Python 3.9 and I keep getting an error when trying to install it into the virtual env with pip. The error states that I must specify ...
Solveig Cipkova's user avatar
3 votes
1 answer
325 views

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 ...
Richard Crossley's user avatar
1 vote
1 answer
162 views

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-...
Karthik T's user avatar
  • 32.1k
Advice
0 votes
7 replies
129 views

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 (...
Cutter's user avatar
  • 1,891
Advice
0 votes
4 replies
160 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
Advice
0 votes
7 replies
156 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
1 answer
112 views

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 ...
Shobhit Belwal's user avatar
Advice
0 votes
3 replies
107 views

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 ...
NW_BlackDog's user avatar
-3 votes
1 answer
112 views

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 ...
Py-ser's user avatar
  • 2,180
0 votes
0 answers
77 views

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 ...
DanRan's user avatar
  • 155
0 votes
0 answers
65 views

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\...
Eric's user avatar
  • 1
1 vote
1 answer
107 views

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 ...
Michael Altfield's user avatar
1 vote
2 answers
78 views

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 ...
gigs's user avatar
  • 123
0 votes
0 answers
85 views

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 --...
Alex YAN's user avatar
-3 votes
1 answer
106 views

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 ...
guettli's user avatar
  • 28k
0 votes
0 answers
222 views

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 ...
Sam Jaques's user avatar
2 votes
1 answer
119 views

I am using Ubuntu 24.04 with Python 3.12 installed on it. I am jsut trying to use the command pip install <package_name> inside the virutal environment but for some reason it uses the global one....
abdo Salm's user avatar
  • 1,933
0 votes
2 answers
1k views

I work on a computing cluster. The global Python version on the node is 3.8. I have a virtual environment that I use when I start a job. The cluster uses LSF for scheduling. I usually access it via ...
W Charles's user avatar
0 votes
1 answer
2k views

Unlike conda, UV create virtual environments under the project, with respect to their name. I have a fresh Mac, installed Cursor which is a variant of VS Code; when I open a Jupyter notebook, it has ...
Areza's user avatar
  • 6,182
1 vote
1 answer
104 views

These are the errors when I attempt to run my application: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>...
Michael's user avatar
  • 113
0 votes
1 answer
341 views

I try to setup a virtual environment for a Python project, and the command source doesn't work: C:\Users>source MyEnv 'source' is not recognized as an internal or external command, operable program ...
Darkhydro's user avatar
  • 2,127
-1 votes
1 answer
69 views

env\Scripts\activate when I want to activate my env they saying I can't cause the execution of the script its disabled and its happens to me with every file in my django folder (except the html ...
Mahmoud ElAlami's user avatar
0 votes
1 answer
68 views

I've recently transitioned from JupyterLab to VSCode, and I've run into an issue I can't seem to solve on my own. I use a single virtual environment to manage all my projects, which I find to be the ...
Dolev Ravid's user avatar
2 votes
2 answers
174 views

I know that to activate virtualenv it's just .venv/Scripts/activate.ps1 but I was wondering if there's a way of having powershell do it automatically? Existing ones just talk about activating it, but ...
Archimedes Trajano's user avatar
0 votes
0 answers
82 views

having a bit of a weird issue in VS Code with Pylance/pillow, whereby the autocomplete doesn't show for PIL when anything inherits PIL. As soon as PIL is used, can no longer get any autocompletes, ...
ybtooly's user avatar
1 vote
1 answer
187 views

After cloning and setting up my repo I use a poetry install When running the code, I see ModuleNotFoundError: No module named 'loguru' The package is there however: poetry add loguru The following ...
Gwilym's user avatar
  • 53
-2 votes
1 answer
227 views

I am doing a Python environment setup practice in which given the code(cannot modify), I need to generate a requirements.txt and install the packages to pass the tests. I am in a python3.6 virtual ...
J X's user avatar
  • 1
0 votes
1 answer
87 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
  • 811
0 votes
0 answers
120 views

pre-commit is failing on all invocations due to an upstream dependency failure with virtualenv. I get the following error: [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-...
Wold's user avatar
  • 962
0 votes
1 answer
119 views

I have a few DAGs that needs to run in a certain time that takes almost all the time-window it has to run before the next process is triggered. Adding the overhead of installing packages on every ...
bred81's user avatar
  • 11
0 votes
2 answers
430 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
1 answer
741 views

I have created a project folder with a pyproject.toml, but I want to use the same virtualenv created in the ProjectA in ProjectB, how can I do that ? Whenever I use the poetry env use /full/path/...
ng.newbie's user avatar
  • 3,372
1 vote
1 answer
284 views

I'm running this piece of code to encrypt a file using PGP public key. import gnupg def pgp_encrypt(pub_file, out_file): gpg = gnupg.GPG() with open(pub_file, 'rb') as pgp_pub_key: ...
MacUsers's user avatar
  • 2,261
2 votes
2 answers
119 views

I have 2 problems. Here was my set-up. I have all of my respositories in ~/dev/, and I had all of my Python virtualenvs in ~/virtualenvs/. This worked OK, but one annoying thing was that it was ...
Ray's user avatar
  • 8,943
-1 votes
1 answer
136 views

When I run poetry run python manage.py runserver in my django backend I get this error ImportError: cannot import name 'GenericAPIView' from 'rest_framework.views' I think it is related to my poetry ...
keisler-au's user avatar
0 votes
0 answers
146 views

I've read through all the relevant posts to this question, but sadly most remain unanswered, or don't seem to apply to my specific situation. I want to use the win32com module, which is part of the ...
FinnFiana's user avatar
0 votes
1 answer
47 views

I have some code that needs to run on a separate computer. Now, normally, I would just create a virtual environment specific to that code and people could just run/access that code from that computer. ...
SpaceCadet2810's user avatar
1 vote
1 answer
44 views

I am configuring a Flask Application on a Debian 12 server, which is supposed to run with python 3.6.9 and Jinja2 Version 3.0.3 in a local venv. But instead of using it, it seems to access the global ...
Corsa C's user avatar
  • 13
1 vote
1 answer
85 views

Mac Mini M1. Hi, I am trying to setup Google Calendar API. I followed every step explained in ...see documentation When running the quickstart.py script given as sample (see here) I got errors : ...
coolmatt's user avatar
3 votes
2 answers
904 views

In Python I can create a virtual environment in VS Code with the following commands, I'll also install a kernel to the same virtual environment: python3 -m venv .venv source .venv/bin/activate pip ...
jophuh's user avatar
  • 371
0 votes
0 answers
61 views

I have a situation where in a script I am having activate a virtualenv, then use subprocess to run a set of scripts in a package that live outside of the virtualenv like so: #!/usr/local/lib/python3....
gdogg371's user avatar
  • 4,190
1 vote
1 answer
453 views

I'm currently unable to use jupyter on my Dell laptop that runs Debian 12. I'm running jupyter lab in a python virtualenv. When I run jupyter lab I first get the following error message that is ...
Noé Mastrorillo's user avatar
3 votes
1 answer
854 views

When I open a GitBash terminal in VSCode while I have a virtual environment activated, the path displayed on top of the input line is C:/Users/username/AppData/Local/Programs/Microsoft VS Code, but ...
user25752829's user avatar
0 votes
0 answers
368 views

On a fresh install of Fedora-41 with pyenv(1) setup as shown, when I execute user@fedora$ pyenv install 3.11.11, I receive the exception shown. I think this comes from the internal Python installation ...
nmvega's user avatar
  • 5,769
0 votes
1 answer
124 views

Whenever I make a new virtual environment to start a new project and create a reuirements.txt file in it, the terminal just doesn't except the request of installing all the libraries listed in the ...
Dhanesh Panchariya's user avatar

1
2 3 4 5
151