Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ERROR: Target path exists but is not a directory, will not continue.

# pip is not installing the package in the correct site-packages path.
# to find the correct package path, inside your IDE run:

from distutils.sysconfig import get_python_lib
print(get_python_lib())

#The output should be site-packages path, for example:

/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages

#Then in the terminal, to set pip to intall packages to this path:

pip config set global.target /home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages

 
PREVIOUS NEXT
Tagged: #Target #path #exists
ADD COMMENT
Topic
Name
8+2 =