Advertisement
Guest User

Untitled

a guest
Dec 28th, 2013
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. python setup.py install
  2.  
  3. sudo python setup.py install
  4. sudo: unable to resolve host Lenovo
  5. /usr/local/lib/python2.7/dist-packages/distribute-0.6.31-py2.7.egg/setuptools/command/install_scripts.py:3: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
  6. from pkg_resources import Distribution, PathMetadata, ensure_directory
  7. running install
  8. Checking .pth file support in /usr/local/lib/python2.7/site-packages/
  9. /usr/bin/python -E -c pass
  10. TEST FAILED: /usr/local/lib/python2.7/site-packages/ does NOT support .pth files
  11. error: bad install directory or PYTHONPATH
  12.  
  13. You are attempting to install a package to a directory that is not
  14. on PYTHONPATH and which Python does not read ".pth" files from. The
  15. installation directory you specified (via --install-dir, --prefix, or
  16. the distutils default setting) was:
  17.  
  18. /usr/local/lib/python2.7/site-packages/
  19.  
  20. and your PYTHONPATH environment variable currently contains:
  21.  
  22. ''
  23.  
  24. Here are some of your options for correcting the problem:
  25.  
  26. * You can choose a different installation directory, i.e., one that is
  27. on PYTHONPATH or supports .pth files
  28.  
  29. * You can add the installation directory to the PYTHONPATH environment
  30. variable. (It must then also be on PYTHONPATH whenever you run
  31. Python and want to use the package(s) you are installing.)
  32.  
  33. * You can set up the installation directory to support ".pth" files by
  34. using one of the approaches described here:
  35.  
  36. http://packages.python.org/distribute/easy_install.html#custom-installation-locations
  37.  
  38. Please make the appropriate changes for your system and try again.
  39.  
  40. echo $PYTHONPATH
  41. /usr/local/lib/python2.7/site-packages:/home/david/PYTHON
  42.  
  43. Defaults env_keep += "PYTHONPATH"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement