Install the Python module in any directory

If you cannot (or do not want to) install the module under / usr due to various reasons

export PYTHONUSERBASE=Directory you want to install
pip install package name--user

--user: Install to user environment. The default is installed under ~ / .local

If you set the PYTHONUSERBASE environment variable, it will add the $ {PYTHONUSERBASE} / lib / python [ver] / site-packages directory to the module search path when the program is executed.

Recommended Posts

Install the Python module in any directory
Master the weakref module in Python
Install the python package in an offline environment
Find the difference in Python
How to know the current directory in Python in Blender
[python] Get the list of classes defined in the module
Python install in 2 lines @Windows
Solve the Japanese problem when using the CSV module in Python.
[Python] Check the current directory, move the directory
Getting the arXiv API in Python
[Python] logging in your own module
Python in the browser: Brython's recommendation
Save the binary file in Python
Hit the Sesami API in Python
Get the desktop path in Python
Install scrapy in python anaconda environment
Put the module in the Pepper app
Get the script path in Python
Windows10: Install MeCab library in python
Install the Python plugin with Netbeans 8.0.2
Hit the web API in Python
Python unittest module execution in vs2017
I wrote the queue in Python
Calculate the previous month in Python
Get the desktop path in Python
Try using the Python Cmd module
Get the host name in Python
Access the Twitter API in Python
The first step in Python Matplotlib
I wrote the stack in Python
Command for the current directory Python
Shuffle the images in any directory with Python and save them in another folder with serial numbers.
install python
Learn the design pattern "Prototype" in Python
Learn the design pattern "Builder" in Python
Load the remote Python SDK in IntelliJ
Start the web server in the current directory
Install Pyaudio to play wave in python
Check the behavior of destructor in Python
Learn the design pattern "Flyweight" in Python
Try using the Kraken API in Python
Learn the design pattern "Observer" in Python
Learn the design pattern "Memento" in Python
python3 How to install an external module
Write the test in a python docstring
Pass the path of the imported python module
Implementation module "deque" in queue and Python
Learn the design pattern "Command" in Python
Comparison of Japanese conversion module in Python3
Pin current directory to script directory in Python
OR the List in Python (zip function)
Tweet using the Twitter API in Python
Learn the design pattern "Visitor" in Python
Learn the design pattern "Bridge" in Python
Check if the URL exists in Python
Learn the design pattern "Mediator" in Python
Associate the table set in python models.py
Learn the design pattern "Decorator" in Python
Run the Python interpreter in a script
The result of installing python in Anaconda
What is "mahjong" in the Python library? ??