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

Running the program WGDI, receiving error about python and pandas modules regarding indexes. Why? What type of error is this?

I am new to programming and am wondering how to troubleshoot this error message? Is it about installation and how I have loaded the programs? Or is it a specific issue with pandas or pythons and my input files? Has anyone else tried running the…
Ray
  • 1
0
votes
0 answers

TYPO3 v11 - Template, TypoScript Setup, Overriding, multiple extensions or sitepackages

I have correctly installed 3 extensions in TYPO3 v11: Bootstrap Package distri_cdg82 base_theme The last 2 were created on sitepackagebuilder. In the TYPO3 backend of my project, I went into Template => Info/Modify => Edit the whole template…
0
votes
0 answers

two site-packages folder for python by conda

This situation occurs to me not even once. I was trying to install and run stable diffusion webui onto my Windows 10 laptop. I created a new environment for it since python version 3.10.6 is required(tested whatsoever) and install pytorch meeting my…
Maul Seil
  • 25
  • 5
0
votes
1 answer

Celery TypeError: unhashable type: 'dict'

I'm trying to run celery, and can't run it because of the following exception: [2023-02-14 11:25:11,689: CRITICAL/MainProcess] Unrecoverable error: TypeError("unhashable type: 'dict'") Traceback (most recent call last): File…
ShiraW
  • 1
  • 2
0
votes
0 answers

How are Virtualenv site-packages created?

I am using pipenv on Mac and see some site-packages installed in the ~/virtualenv/python3.9/. In my case there is an OpenSSL and I'm not sure how it got there seeing as there is no corresponding entry in pipfile. I take this to mean it is duplicated…
dras
  • 138
  • 4
  • 14
0
votes
0 answers

setup.py is not installing dependencies

I have few dependencies which I am unable to install with PIP using setuptools. Here given below is the content from my setup.py file, in which I am unable to install cosign inside my package. Note: There is no way to install cosign with pip from…
0
votes
0 answers

building wheels for various packages not working

I receive various error when trying to install magenta with pip i get an error for building wheels for numba, llvmlite and python-rtmidi example for numba: × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [13 lines of…
UserLK
  • 1
  • 1
0
votes
1 answer

Editing Site Package Does Nothing

To test, I have commented out all the .py files within one of my python site-packages and saved the files. Upon restart of terminal and ipython, all the old functionality of the package still works somehow. I tested further by copying the…
David Yang
  • 2,101
  • 13
  • 28
  • 46
0
votes
0 answers

Installing Anaconda on Windows does not recognize site-packages correctly

After installing Anaconda3 (python 3.9.7) on Windows 10, then opening Spyder and in the IPython console typing import h5py gives 'no such module h5py'. I noticed that sys.path did not include the site-packages directory, so I tried…
Philliph
  • 31
  • 4
0
votes
0 answers

I cannot import modules inside of my package located in site-packages; what should I do?

I have made a package located here: /home/saunderstock1/.local/lib/python3.9/site-packages. When I try to import any modules in any of the python files located in said package, I get an ImportError. I assume this has to do with the package's…
user18798042
  • 107
  • 7
0
votes
1 answer

problem with install, uninstall ,and upgrade packages on pip

whenever I want to update/upgrade packages with pip I see the following message: WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages) and when I go to the mentioned path I see folders like ~rgcomplete-1.12.2.dist-info that…
Sina M
  • 84
  • 11
0
votes
1 answer

Getting module not callable when trying to run package installed from setup.py

I have this whole case on GitHub https://github.com/jiri-otoupal/dievpn. It normally works, when I just run it through main.py But if i install it with python setup.py install and try to run dvpn It throws exception Traceback (most recent call…
0
votes
0 answers

Module pyaxidraw not found even though it's in site-packages

I tried to connect to my pen plotter using package pyaxidraw. I did install it successfully, upgraded as it says on their site by using commands: python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip python -m pip…
0
votes
1 answer

use import_module to access module from site-packages

I want to import all modules from a particular directory of a package which I installed using pip, that is, it lies in site-packages. What I tried Let's say the package name is package and it has a directory called directory. It has many files like…
0
votes
1 answer

Embedded Python install manually package without pip

I download and unzip python-3.9.6-embed-amd64.zip file from python.org . Then, I unzipped python39.zip and I found site-packages folder in there.I added manually pandas package from pypi. Lastly, I tried this command: python.exe setup.py install .…