LibcSearcher 安装 错误处理
第一步 :安装
1.git clone https://github.com/lieanu/LibcSearcher.git 2.cd LibcSearcher 3.python setup.py develop
报错一
Traceback (most recent call last):
File "setup.py", line 1, in <module>
from setuptools import find_packages, setup
ImportError: No module named setuptools
解决方案
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz tar zxvf setuptools-0.6c11.tar.gz cd setuptools-0.6c11 python setup.py build python setup.py install
报错二
xxx@xxx-virtual-machine:~/LibcSearcher/setuptools-0.6c11$ python setup.py develop
running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: cant create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: /usr/local/lib/python2.7/dist-packages/test-easy-install-12856.pth
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
http://peak.telecommunity.com/EasyInstall.html
Please make the appropriate changes for your system and try again.
解决方案
使用
sudo python setup.py develop
搞定
running develop Checking .pth file support in /usr/local/lib/python2.7/dist-packages/ /usr/bin/python -E -c pass TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files running egg_info writing setuptools.egg-info/PKG-INFO writing top-level names to setuptools.egg-info/top_level.txt writing dependency_links to setuptools.egg-info/dependency_links.txt writing entry points to setuptools.egg-info/entry_points.txt reading manifest file setuptools.egg-info/SOURCES.txt writing manifest file setuptools.egg-info/SOURCES.txt running build_ext Creating /usr/local/lib/python2.7/dist-packages/setuptools.egg-link (link to .) Adding setuptools 0.6c11 to easy-install.pth file Installing easy_install script to /usr/local/bin Installing easy_install-2.7 script to /usr/local/bin Installed /home/kylin/LibcSearcher/setuptools-0.6c11 Processing dependencies for setuptools==0.6c11 Finished processing dependencies for setuptools==0.6c11
