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

python can't show my installed librery packages

devignesh@devignesh:~/soup$ pip list Exception: Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2556, in version return self._version File…
0
votes
0 answers

Matlab: can't find site-packages folder to use Python in Matlab

I want to call Python modules or user-defined functions/scripts I built in python through Matlab. I'm aware of many of the things I need to cover before something like this is possible, I'll make a list of everything I've done so far. Created…
Aquiles Páez
  • 503
  • 6
  • 18
0
votes
1 answer

Insert Python Packages from Separate Directory into a different Namespace

Suppose in my Python path, I had the namespace foo. I have modules in a separate directory (not in the python path) called bar: x.py, y.py, z.py. So the layout might look something like this: |--/python/path/site-packages/foo/…
Sidd Singal
  • 559
  • 6
  • 16
0
votes
2 answers

Python continues to install a module despite a pip uninstall

I used pip to uninstall the google python module. However, import google still works. What am I missing?? I want to banish this module from my computer
rvictordelta
  • 630
  • 2
  • 8
  • 23
0
votes
1 answer

import tensorflow as tf gives errors even after installing without errors

I've been trying to solve this issue for long time. After many attempts in my existing python=3.5 env (in Anaconda), I deleted it and created a new env again just to properly install tensorflow with gpu support. To do that I did conda create -n FALL…
bit_scientist
  • 1,496
  • 2
  • 15
  • 34
0
votes
1 answer

build is successful but code doesn't work, throwing ImportError

My issue is little different from existing ones on the WEB. Let me try highlighting it in detail. I have this code to do some plotting by reading a .txt file specified. I was going to build it as usually as I did before. My setup.py is supposed to…
bit_scientist
  • 1,496
  • 2
  • 15
  • 34
0
votes
1 answer

ImportError: No module while in venv

I am in a venv on a ubuntu 16 vm with both python 2.7 and 3.5 installed. I am receiving an import error regarding one of the module's in my project's site-packages folder. I am attempting to run a program with python 2.7. When I run the program…
UCProgrammer
  • 517
  • 7
  • 21
0
votes
1 answer

site-package of python3 not found

I am trying to find where is the site-package for Python3 ➜ ~ python3 -m site --user-site /Users/macbookpro/Library/Python/3.6/lib/python/site-packages ➜ ~ cd /Users/macbookpro/Library/Python/3.6. cd: no such file or directory:…
0
votes
1 answer

lmdb package cannot be imported

I wanted to use lmdb package in python2.7 on my OSX. I used pip2 install lmdb to install it. And if I install it multiple times, it will show Requirement already satisfied: lmdb in /usr/local/lib/python2.7/site-packages (0.94). But then when I open…
paranoider
  • 27
  • 2
0
votes
1 answer

Installing numpy, keras and theano without root privileges on linux

I have been given access to a University Data Center to deploy an Image Analysis python project. The server has Python 2.7 and 3.5 installed and I can see that it is missing packages like numpy, theano and keras which I have used in my code as…
Batwoman05
  • 215
  • 1
  • 2
  • 9
0
votes
1 answer

pip has to reinstall all packages in exported virtualenv

I have a question about python virtualenv. I get a virtualenv for a project with all packages required to run that project. But when i run it for the first time and it crash 'cause python has some requirements not satisfied. So i check if there is…
Bob91
  • 103
  • 6
0
votes
1 answer

No such file or directory when adding script to local site-packages

I made my own python module that I want to be able to import from anywhere. The module I created relies of a text file of information in order to run. I ran python -m site --user-site, and created that directory and I put a copy of my module, and…
0
votes
1 answer

Python Programs won't access site-packages

I am a python and ubuntu noob and everytime I write a program, I get an error like Traceback (most recent call last): File "demo.py", line 2, in import cv2 ModuleNotFoundError: No module named 'cv2' I have opencv installed and it…
Adam
  • 117
  • 2
  • 11
0
votes
0 answers

Python not starting due to failed import site module google_auth-1.1.1

I am using Windows and was running Python 3.5.4 from the Anaconda distribution. I was trying to install PyQt5 on my computer and I believe I ended up disrupting Python startup. Now when I attempt to open python or ipython or pip, I get the following…
Jonesn11
  • 99
  • 2
  • 11
-1
votes
1 answer

Python package pypdf2 is "already installed" but can not import it

I am a newbie with Python and I am going around in circles over python's inability to find a mod. In jupyter notebook here is what I get: pip install pypdf2 Requirement already satisfied: pypdf2 in…