Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to change default install location for pip

'''Assuming pip installs the packages in the wrong site-packages path but -
you want pip to intall the package under conda base path (any conda 
environment). And also assuming you using IDE liker spyder or pycharm or
jupytor etc., running under conda site-packages path (correct path)'''
# Then run the following code inside the IDE runing under conda.
from distutils.sysconfig import get_python_lib
print(get_python_lib())
# The output should be site-package path, such as:
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages
#To make pip install packages to this path by default,-
#Then in the terminal use the output site-package path as follows:
pip config set global.target /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages
#After this pip should install all packages to this path by default. 
Comment

PREVIOUS NEXT
Code Example
Shell :: how t oadd ssl to a subdomain in nginx 
Shell :: watch tail file linux 
Shell :: install git 
Shell :: git add ignored file 
Shell :: installing appimage file ubuntu 
Shell :: how to install image app in linux using terminal 
Shell :: pip install kivy 
Shell :: heroku error: src refspec master does not match any 
Shell :: linux process 
Shell :: create a new repository using command line 
Shell :: chocolatey local installed 
Shell :: throw exception powershell 
Shell :: laravel conf apache2 
Shell :: path/to/sdkmanager --install "cmdline-tools;latest" 
Shell :: change desktop icon size ubuntu 
Shell :: find ip curl 
Shell :: Wine Mono is not installed 
Shell :: shell script store command output in variable 
Shell :: linux change file owner 
Shell :: comparing file content bash 
Shell :: install istio on kubernetes on OS linux 
Shell :: bash find file 
Shell :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. 
Shell :: install vmware workstation linux mint 
Shell :: how to install aiohttp on vscode 
Shell :: how to check open vpn on ubuntu 
Shell :: git keep empty folder 
Shell :: How to check if ssh-agent is already running in bash 
Shell :: The CUDA compiler identification is unknown CMake Error at CMakeLists.txt:441 (enable_language): No CMAKE_CUDA_COMPILER could be found. 
Shell :: connect vscode to gitlab 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =