Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with installing in venv? #59

Open
wabiloo opened this issue Mar 24, 2023 · 2 comments
Open

Issue with installing in venv? #59

wabiloo opened this issue Mar 24, 2023 · 2 comments

Comments

@wabiloo
Copy link

wabiloo commented Mar 24, 2023

Hi,
It's probably nothing to do with you, but when I try to install the package with pip3 in a virtual environment (venv), it does not seem to ever install it within it, which causes my IDE (VSCode with Pylance) not to find it for import.
I've never seen that, and I don't seem to have issues with other packages...

I've tried (after activation of the venv naturally):
pip3 install InquirerPy
pip3 install -U InquirerPy
pip3 install --ignore-installed -U InquirerPy

But none of them actually created the package under my .venv/lib/python3.11/site-packages/ folder

Any idea?

@Gracecr
Copy link

Gracecr commented Mar 30, 2023

I would try python -c "import sys;print(sys.executable)" to make sure that you're running from your virtual environment. Next, try python -m pip install -U InquirerPy to ensure that you're running the pip associated with your virtual environment.

@rreben
Copy link

rreben commented Apr 1, 2023

Check whether VS Code uses the venv. This should be configured automatically. In the lower right corner (status bar of VSCode) you find a dropdown field with the various python environments, sometimes you have to set the right environment automatically. you can try the 'which' command to figure out which python interpreter is used in the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants