[PYTHON] I quarantined my environment with virtualenv, but I get a lot of packages with pip list

problem

I isolated the environment with virtualenv, direnv, etc.

pip list

Will bring up a large number of packages (= system pip installed packages).

solution

In this case, PYTHONPATH contained /usr/lib/python2.7/dist-packages. In other words, even pips isolated by direnv and virtualenv are affected by environment variables, so

echo $PYTHONPATH

You can check if there is a strange path by executing. Is a lesson

Recommended Posts

I quarantined my environment with virtualenv, but I get a lot of packages with pip list
Get a list of packages installed in your current environment with python
Get a list of IAM users with Boto3
Get a list of purchased DMM eBooks with Python + Selenium
Since Python 1.5 of Discord, I can't get a list of members
I have libncurses but get angry with pip install readline
I tried to create a list of prime numbers with python
I made a lot of files for RDP connection with Python
I tried to get a list of AMI Names using Boto3
Get a list of files in a folder with python without a path
Get a local DynamoDB environment with Docker
[python] Get a list of instance variables
List of Atom packages I really use
[Python] Get a list of folders only
Get a list of articles posted by users with Python 3 Qiita API v2
I failed to install django with pip, so a reminder of the solution
How to get a list of files in the same directory with python
Building a python environment with virtualenv and direnv
Use the latest pip in a virtualenv environment
List packages that can be updated with pip
Get a list of Qiita likes by scraping
Commands for creating a python3 environment with virtualenv
Work in a virtual environment with Python virtualenv.
Flow of creating a virtual environment with Anaconda
Get a quick Python development environment with Poetry
Get the value of a specific key in a list from the dictionary type in the list with Python
Recommendation of building a portable Python environment with conda
Build a python virtual environment with virtualenv and virtualenvwrapper
I made a Python3 environment on Ubuntu with direnv.
Find out the location of packages installed with pip
Build a python virtual environment with virtualenv and virtualenvwrapper
Python: Get a list of methods for an object
Twitter API: Get a list of accounts that you follow but are not followed back
Get a list of CloudWatch Metrics and a correspondence table for Unit units with Python boto