25 questions
0
votes
0
answers
108
views
wsl: Permission denied on using pyenv
Problem
I recently installed pyenv on wsl(24.04) and tried to set python version on local directory, but I got this error:
$ pyenv local 3.14.0
~/.pyenv/libexec/pyenv-version-file-write: line 37: ....
1
vote
1
answer
189
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 ...
Advice
0
votes
7
replies
138
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
2
answers
71
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 ...
2
votes
0
answers
346
views
VENV does not include pip in newly created environment
I found a number of questions related to my problem but solutions did not really help me. I work on Windows 10 and PowerShell 7, and have currently installed a few Python versions, s.a. 3.11, 3.12 and ...
0
votes
2
answers
95
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
0
answers
87
views
Autocomplete pdb and .venv
I have the following file 'test.py'
#!/usr/bin/env python3
if __name__ == '__main__':
test: str = "This is a test"
breakpoint()
print(test)
When executing this (no venv) auto-...
0
votes
2
answers
45
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
votes
1
answer
46
views
Cannot make terminal of VSCode autosource .venv
I'm using Vscode on MacOS and i installed python through pyenv and the only thing i can't manage to make work is terminal in vscode to automatically source .
i already tried re-installing vscode and ...
1
vote
0
answers
85
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
vote
1
answer
55
views
Pipenv on Windows &INI file location
Rather new to pipenv, though not to all of virtual environments under python, my app is trying to create an INI file in my Windows user home directory, but running my code from within VSCode or from ...
-1
votes
2
answers
355
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/...
1
vote
0
answers
45
views
Failed import in jupyter notebook venv kernel in VS Code but successful import in terminal also in VS Code
I was trying to go over this pgymy tutorial and I ran into an issue with the package. I am running this on a Jupyter notebook on VS Code on Windows.
from pgmpy.models import DiscreteBayesianNetwork
...
4
votes
1
answer
436
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 ...
0
votes
1
answer
174
views
Python interpreter doesn't honour .inputrc readline settings when run from a venv
My .inputrc file, which simply contains set editing-mode vi, means that when I use Bash and some other interpretive environments, I can use Vi editor keys. This also works when I run the system Python ...