本地安装python库文件
下载安装包到本地并解压,进入setup.py 目录,输入以下命令
python setup.py install
例子:
D:distpyad-0.6.00>python setup.py install running install running bdist_egg running egg_info writing pyad.egg-infoPKG-INFO writing dependency_links to pyad.egg-infodependency_links.txt writing requirements to pyad.egg-info equires.txt writing top-level names to pyad.egg-info op_level.txt reading manifest file 'pyad.egg-infoSOURCES.txt' writing manifest file 'pyad.egg-infoSOURCES.txt' installing library code to builddist.win-amd64egg running install_lib running build_py creating builddist.win-amd64egg creating builddist.win-amd64eggpyad copying buildlibpyadadbase.py -> builddist.win-amd64eggpyad copying buildlibpyadadcomputer.py -> builddist.win-amd64eggpyad copying buildlibpyadadcontainer.py -> builddist.win-amd64eggpyad copying buildlibpyadaddomain.py -> builddist.win-amd64eggpyad copying buildlibpyadadgroup.py -> builddist.win-amd64eggpyad copying buildlibpyadadobject.py -> builddist.win-amd64eggpyad copying buildlibpyadadquery.py -> builddist.win-amd64eggpyad copying buildlibpyadadsearch.py -> builddist.win-amd64eggpyad copying buildlibpyadaduser.py -> builddist.win-amd64eggpyad copying buildlibpyadpyad.py -> builddist.win-amd64eggpyad copying buildlibpyadpyadconstants.py -> builddist.win-amd64eggpyad copying buildlibpyadpyadexceptions.py -> builddist.win-amd64eggpyad copying buildlibpyadpyadutils.py -> builddist.win-amd64eggpyad copying buildlibpyad\__init__.py -> builddist.win-amd64eggpyad byte-compiling builddist.win-amd64eggpyadadbase.py to adbase.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadcomputer.py to adcomputer.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadcontainer.py to adcontainer.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadaddomain.py to addomain.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadgroup.py to adgroup.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadobject.py to adobject.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadquery.py to adquery.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadadsearch.py to adsearch.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadaduser.py to aduser.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadpyad.py to pyad.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadpyadconstants.py to pyadconstants.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadpyadexceptions.py to pyadexceptions.cpython-38.pyc byte-compiling builddist.win-amd64eggpyadpyadutils.py to pyadutils.cpython-38.pyc byte-compiling builddist.win-amd64eggpyad\__init__.py to __init__.cpython-38.pyc creating builddist.win-amd64eggEGG-INFO copying pyad.egg-infoPKG-INFO -> builddist.win-amd64eggEGG-INFO copying pyad.egg-infoSOURCES.txt -> builddist.win-amd64eggEGG-INFO copying pyad.egg-infodependency_links.txt -> builddist.win-amd64eggEGG-INFO copying pyad.egg-info equires.txt -> builddist.win-amd64eggEGG-INFO copying pyad.egg-info op_level.txt -> builddist.win-amd64eggEGG-INFO zip_safe flag not set; analyzing archive contents... creating 'distpyad-0.6.0-py3.8.egg' and adding 'builddist.win-amd64egg' to it removing 'builddist.win-amd64egg' (and everything under it) Processing pyad-0.6.0-py3.8.egg Removing c:program filespython38libsite-packagespyad-0.6.0-py3.8.egg Copying pyad-0.6.0-py3.8.egg to c:program filespython38libsite-packages pyad 0.6.0 is already the active version in easy-install.pth Installed c:program filespython38libsite-packagespyad-0.6.0-py3.8.egg Processing dependencies for pyad==0.6.0 Searching for future==0.18.2 Best match: future 0.18.2 Processing future-0.18.2-py3.8.egg future 0.18.2 is already the active version in easy-install.pth Installing futurize-script.py script to C:Program FilesPython38Scripts Installing futurize.exe script to C:Program FilesPython38Scripts Installing pasteurize-script.py script to C:Program FilesPython38Scripts Installing pasteurize.exe script to C:Program FilesPython38Scripts Using c:program filespython38libsite-packagesfuture-0.18.2-py3.8.egg Searching for setuptools==41.2.0 Best match: setuptools 41.2.0 Adding setuptools 41.2.0 to easy-install.pth file Installing easy_install-script.py script to C:Program FilesPython38Scripts Installing easy_install.exe script to C:Program FilesPython38Scripts Installing easy_install-3.6-script.py script to C:Program FilesPython38Scripts Installing easy_install-3.6.exe script to C:Program FilesPython38Scripts Using c:program filespython38libsite-packages Finished processing dependencies for pyad==0.6.0