24 questions
1
vote
1
answer
89
views
Visual Studio Code does not run Python file in the terminal when using venv, but gives no error and works in interactive window and debugger
I have been using Visual Studio Code to run Python for a few months, but recently when I select Run Python File or Run Python File in Dedicated Terminal, a new instance of PowerShell opens in the ...
1
vote
2
answers
67
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
2
answers
90
views
Django cannot register oauth2_provider and rest_framework to INSTALLED_APPS
I am working on this weekend project, to learn Django and I am stuck.
Before adding the REST framework (one to last commit in the repo), everything was working just alright.
Once I added the ...
0
votes
2
answers
43
views
Activating conda venv in wsl via Windows .bat file
I am trying to use a .bat file that would automatically open the console, and change into a certain conda venv in WSL / Ubuntu.
The following .bat file does open Ubuntu / wsl, but it stays in (base) ...
1
vote
0
answers
74
views
Virtual Environment Size Difference (Windows vs Linux)
I initially worked on this project on Windows using a venv with the following dependencies:
langchain
langchain-community
langchain-google-genai
python-dotenv
google-genai
pypdf
pinecone
langchain-...
-1
votes
2
answers
297
views
Cannot import: `from serpapi import GoogleSearch` [closed]
I have this app in PyCharm (see screenshot). It won't run because of:
ImportError: cannot import name 'GoogleSearch' from 'serpapi' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/...
4
votes
1
answer
367
views
No module named pip in venv but pip installed
I work in WSL Ubuntu. After instalation python3.13 dependencies from my previous projects stopped working. Venv with python 3.12 stopped activate in vscode interface. ErrorMessage:
An Invalid Python ...
2
votes
0
answers
233
views
Python 3.12 - No module named expat; use SimpleXMLTreeBuilder instead
I'm developing a django app and want to utilize manage.py to import data from a xlsx file. I use a conda environment based on python 3.12.9. When I run the command from a terminal with activated venv:
...
0
votes
1
answer
90
views
Check if a python module exists with specific venv path
If I have a venv path, how can I find out if a Python module is installed inside that venv?
I normally use importlib.util.find_spec. But this only works for the current venv that is active and does ...
0
votes
0
answers
127
views
Jupyter notebook in VSCode does not see .venv kernel
I am trying to run Jupyter notebook in VSCode, but I cannot load the virtual environment kernel. In fact, I don't see any kernels. When I try to select a Python Environment kernel, doesn't show any ...
0
votes
0
answers
25
views
Finding a single JupyterLab installation accessible across different virtual environments
I wish to use jupyter lab for my projects.
I have python 3.11 installed via anaconda.
When I create a virtual environment, jupyter lab is not installed.
How can I avoid many double installations of ...
1
vote
1
answer
36
views
python venv install skips component file "pointer.png"
This is a strange issue. I maintain the pi3d python module and it contains this file
github.com/tipam/pi3d/blob/master/src/pi3d/util/icons/pointer.png
When I clone the repo locally it has the .png ...