1

I'm using vscode on windows.

have a look here:

(ETLAppEnv_3_7) PS C:\Users\jmarshall\source\repos\MediaDesignGroup\ETLApp_Dev> pip show pandas
Name: pandas
Version: 1.0.1
Summary: Powerful data structures for data analysis, time series, and statistics
Home-page: https://pandas.pydata.org
Author: None
Author-email: None
License: BSD
Location: c:\users\jmarshall\appdata\local\programs\python\python37\lib\site-packages
Requires: pytz, numpy, python-dateutil
Required-by:

even though I'm in my virtual environment here:

(ETLAppEnv_3_7) PS C:\Users\jmarshall\source\repos\MediaDesignGroup\ETLApp_Dev> pip show pandas

pip is working out of the base install of python here:

Location: c:\users\jmarshall\appdata\local\programs\python\python37\lib\site-packages

How do I get pip to point to the packages in my virtual environment???

Jamie Marshall
  • 1,885
  • 3
  • 27
  • 50
  • What tool are you using for your virtual environments? – AMC Feb 22 '20 at 02:17
  • Does this answer your question? [pip installing in global site-packages instead of virtualenv](https://stackoverflow.com/questions/20952797/pip-installing-in-global-site-packages-instead-of-virtualenv) – AMC Feb 22 '20 at 02:17
  • @AMC virtualenv is the library supporting Visual-Studio-Code. – Jamie Marshall Feb 25 '20 at 22:05
  • _virtualenv is the library supporting Visual-Studio-Code_ What do you mean? – AMC Feb 27 '20 at 18:37
  • I'm not sure how VSCode works their integration for virtual environments, but the in the docs [here](https://code.visualstudio.com/docs/python/environments), it looks like it supports discovery of venv's created by virtualenv, pyenv, and pipenv. – Jamie Marshall Feb 27 '20 at 19:41

1 Answers1

0

Possible Duplicate of pip installing in global-site packages instead of virtualenv

According to that post, the VIRTUAL_ENV path within your venv's activate script might be incorrect.

In my personal experience, I had the globally-install packages option selected when I created a venv in PyCharm which resulted in your same issue.

Debug tip: pip list --local will give you all the packages installed in you venv. Might want to double check it isn't installed in the venv.

Conrad
  • 91
  • 2
  • 8