Questions tagged [site-packages]

site-packages is the target directory of manually built Python packages (where Python installs its modules).

When you build and install Python packages from source you will find the installed modules in a folder named site-packages by default.

The standard installation location can be found here (see also installation documentation):

Unix (pure):

# prefix/lib/pythonX.Y/site-packages
/usr/local/lib/pythonX.Y/site-packages

Unix (non-pure):

# exec-prefix/lib/pythonX.Y/site-packages
/usr/local/lib/pythonX.Y/site-packages

Windows:

# prefix\Lib\site-packages
C:\PythonXY\Lib\site-packages

When you run Python, the module search path sys.path usually includes a directory whose path ends in "site-packages". This directory is intended to hold locally-installed packages available to all users using a machine or a particular site installation.

See PEP-370 for more information about "Per user site-packages directory", and this tutorial about virtual environments to see that the installation location can be different (isolated in that case).

108 questions
0
votes
0 answers

Error in installing in Hellinger distance library with the help of github

While trying to use hellinger-distance-criterion from github link https://github.com/EvgeniDubov/hellinger-distance-criterion I am not able to find some error. In the github link, it is given the following steps: You will need a cython "header"…
0
votes
1 answer

ImportError: cannot import name 'util' from partially initialized module 'sqlalchemy' (most likely due to a circular import)

I am using the ChatterBot library to create a chatbot and I have come across this error. I tried to create a chatbot object in my program but I get this compile time error Traceback (most recent call last): File "d:\TwitterBot1\Bot1.py", line 123,…
0
votes
1 answer

Python "Import missingno" results in "ImportError: attempted relative import with no known parent package"

I am using jupyter nb running python 3.9.1 using pip to install modules etc. All imports work smoothly except missingno. All the modules being imported are located in the same location Python39\lib\site-packages but missingno results in Import…
0
votes
0 answers

VS Code: Unable to install flask

I'm not using a virtual environment, & have tried selecting the appropriate python interpreter. When I do a python3 -m pip install flask, my terminal says Requirement already satisfied: MarkupSafe>=0.23 in…
0
votes
1 answer

Python git repo setup not matching site packages

My team uses git to manage our workflow, however, I clearly don't have it set up right. I have my repo setup in my user directory: Repos/project/stuff However, the actual project and it's site packages are in a different location in the root…
fjjones88
  • 267
  • 4
  • 16
0
votes
1 answer

location of Python libraries installed

I have installed Python 3.8 in my machine (windows 10). I can see it is installed in following locations, and my Python programs are running fine, after adding these locations in PATH variable. C:\Users\
0
votes
0 answers

Installed anaconda python libraries cannot be imported

I'm setting up a Python/conda enviroment on Ubuntu. I installed some common Python libraries such as tensorflow via conda install or pip install. Via pip show ... I found out they are all installed in the following folder:…
Daan R
  • 58
  • 9
0
votes
0 answers

Modifying Anaconda Site-packages location

After installed Anaconda on the following location "C:\Program Files\anaconda". My Site-pacakges location is located at "C:\Program Files\anaconda\Lib\site-packages" Due to the security policy I will not able to install new package into "C:\Program…
0
votes
1 answer

VScode debugger cannot import modules from site-packages

I have C:\Users\user\AppData\Roaming\Python\Python37\site-packages directory in sys.path And while I run code via cmd it works fine. However, when i try run it via vscode debugger, I get this: No module named request So, how can I fix this?
0
votes
1 answer

Don't find site-packages after PC formatting

I formatted my PC in order to find site-packages but I can not see them using those lines necessary. import sys print ('\n'.join(sys.path)) I don't find the paths (I'd like to see those paths)…
Redhwan
  • 927
  • 1
  • 9
  • 24
0
votes
0 answers

Install all the site packages of Django rest framework project at once

I have git-ignored venv/ of the Django rest framework project.(According to a git ignore file of a tutorial) Now the other users of the repository needs a way to install the site-packages that I use in my local pc. I want a command or way to install…
0
votes
1 answer

the site packages folder in python is marked red along with subfolders

the site packages in pycharm are appearing red in color and i cannot import anything from the sub folders.I have tried going to settings-->project structure-->add,,and nothing works.I have tried uninstalling and reinstalling pycharm and still the…
0
votes
1 answer

How to Access Installed python directory/'site-packages' Folder for a VM Instance on Google Cloud Platform (GCP)

I am currently using GCP through a VM instance to run python 3.6. I can see my notebooks and data I've added/created, however I can't see my root folder or package details and need to edit a core module under site-packages, which would normally be…
0
votes
1 answer

no django file in the site packages

**Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line …
0
votes
1 answer

Python, 'no module named {package}' error

I'm trying to use a package I installed using pip and it got installed in C:\Program Files\Python\Python38\Lib\site-packages, but when I import it in my IDE I get an error saying No module named instabot. I have had this error before and I'm unsure…
user13119765