-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
Someone attempting to install Ray with python setup.py install
(within a virtualenv on Mac OS X) got the error message below.
Note:
- I tried it myself in a virtualenv, and that worked fine on my machine, so the virtualenv may not be the problem.
- As a workaround, doing
./build.sh
worked fine, and then doingpython setup.py develop
worked.
TEST FAILED: /Users/user/.local/lib/python3.5/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Users/user/.local/lib/python3.5/site-packages/
and your PYTHONPATH environment variable currently contains:
'/usr/local/opt/opencv3/lib/python3.5/site-packages/'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations
Metadata
Metadata
Assignees
Labels
No labels