包依赖管理 项目的分布式迁移
pip install imageio; #依赖 Pillow numpy
[root@admin40 ~]# pip install imageio;
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting imageio
Downloading https://mirrors.aliyun.com/pypi/packages/a7/1d/33c8686072148b3b0fcc12a2e0857dd8316b8ae20a0fa66c8d6a6d01c05c/imageio-2.3.0-py2.py3-none-any.whl (3.3MB)
100% |████████████████████████████████| 3.3MB 2.0MB/s
Collecting numpy (from imageio)
Downloading https://mirrors.aliyun.com/pypi/packages/7b/61/11b05cc37ccdaabad89f04dbdc2a02905cf6de6f9b05816dba843beed328/numpy-1.14.3-cp35-cp35m-manylinux1_x86_64.whl (12.1MB)
100% |████████████████████████████████| 12.1MB 3.1MB/s
Collecting pillow (from imageio)
Downloading https://mirrors.aliyun.com/pypi/packages/07/52/8e27b9c54cb70d379244771a58483928b3a02db3c657d466ed84eb18f22b/Pillow-5.1.0-cp35-cp35m-manylinux1_x86_64.whl (2.0MB)
100% |████████████████████████████████| 2.0MB 4.1MB/s
Installing collected packages: numpy, pillow, imageio
Successfully installed imageio-2.3.0 numpy-1.14.3 pillow-5.1.0
whl 安装 pymssql
C:\Users\sas>pip install pymssql Collecting pymssql Using cached https://files.pythonhosted.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz Building wheels for collected packages: pymssql Running setup.py bdist_wheel for pymssql ... error Complete output from command c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-jbj8fjl_\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d D:\MYTMPH~1\pip-wheel-xsv1n_wi --python-tag cp36: setup.py: platform.system() => 'Windows' setup.py: platform.architecture() => ('64bit', 'WindowsPE') running bdist_wheel running build running build_ext building '_mssql' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release D:\ccpp\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MYTMPH~1\pip-install-jbj8fjl_\pymssql\freetds\vs2015_64\include -Ic:\users\public\py36\include -Ic:\users\public\py36\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\ATLMFC\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /Tc_mssql.c /Fobuild\temp.win-amd64-3.6\Release\_mssql.obj -DMSDBLIB _mssql.c _mssql.c(266): fatal error C1083: 无法打开包括文件: “sqlfront.h”: No such file or directory error: command 'D:\\ccpp\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- Failed building wheel for pymssql Running setup.py clean for pymssql Failed to build pymssql networkx 2.0 has requirement decorator>=4.1.0, but you'll have decorator 4.0.11 which is incompatible. Installing collected packages: pymssql Running setup.py install for pymssql ... error Complete output from command c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-jbj8fjl_\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record D:\MYTMPH~1\pip-record-9im4vx4i\install-record.txt --single-version-externally-managed --compile: setup.py: platform.system() => 'Windows' setup.py: platform.architecture() => ('64bit', 'WindowsPE') running install running build running build_ext cythoning _mssql.pyx to _mssql.c warning: _mssql.pyx:143:4: Exception already a builtin Cython type building '_mssql' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release D:\ccpp\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MYTMPH~1\pip-install-jbj8fjl_\pymssql\freetds\vs2015_64\include -Ic:\users\public\py36\include -Ic:\users\public\py36\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\ATLMFC\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /Tc_mssql.c /Fobuild\temp.win-amd64-3.6\Release\_mssql.obj -DMSDBLIB _mssql.c _mssql.c(567): fatal error C1083: 无法打开包括文件: “sqlfront.h”: No such file or directory error: command 'D:\\ccpp\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- Command "c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-jbj8fjl_\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record D:\MYTMPH~1\pip-record-9im4vx4i\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in D:\MYTMPH~1\pip-install-jbj8fjl_\pymssql\ C:\Users\sas>pip install pymssql Collecting pymssql Using cached https://files.pythonhosted.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz Building wheels for collected packages: pymssql Running setup.py bdist_wheel for pymssql ... error Complete output from command c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-fgh0oe8m\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d D:\MYTMPH~1\pip-wheel-lvzaxrs2 --python-tag cp36: setup.py: platform.system() => 'Windows' setup.py: platform.architecture() => ('64bit', 'WindowsPE') running bdist_wheel running build running build_ext building '_mssql' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release D:\ccpp\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MYTMPH~1\pip-install-fgh0oe8m\pymssql\freetds\vs2015_64\include -Ic:\users\public\py36\include -Ic:\users\public\py36\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\ATLMFC\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /Tc_mssql.c /Fobuild\temp.win-amd64-3.6\Release\_mssql.obj -DMSDBLIB _mssql.c _mssql.c(266): fatal error C1083: 无法打开包括文件: “sqlfront.h”: No such file or directory error: command 'D:\\ccpp\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- Failed building wheel for pymssql Running setup.py clean for pymssql Failed to build pymssql networkx 2.0 has requirement decorator>=4.1.0, but you'll have decorator 4.0.11 which is incompatible. Installing collected packages: pymssql Running setup.py install for pymssql ... error Complete output from command c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-fgh0oe8m\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record D:\MYTMPH~1\pip-record-bda5khzb\install-record.txt --single-version-externally-managed --compile: setup.py: platform.system() => 'Windows' setup.py: platform.architecture() => ('64bit', 'WindowsPE') running install running build running build_ext cythoning _mssql.pyx to _mssql.c warning: _mssql.pyx:143:4: Exception already a builtin Cython type building '_mssql' extension creating build creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release D:\ccpp\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\MYTMPH~1\pip-install-fgh0oe8m\pymssql\freetds\vs2015_64\include -Ic:\users\public\py36\include -Ic:\users\public\py36\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\ATLMFC\include -ID:\ccpp\VC\Tools\MSVC\14.12.25827\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /Tc_mssql.c /Fobuild\temp.win-amd64-3.6\Release\_mssql.obj -DMSDBLIB _mssql.c _mssql.c(567): fatal error C1083: 无法打开包括文件: “sqlfront.h”: No such file or directory error: command 'D:\\ccpp\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- Command "c:\users\public\py36\python.exe -u -c "import setuptools, tokenize;__file__='D:\\MYTMPH~1\\pip-install-fgh0oe8m\\pymssql\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record D:\MYTMPH~1\pip-record-bda5khzb\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in D:\MYTMPH~1\pip-install-fgh0oe8m\pymssql\ C:\Users\sas>pip install D:\pymssql-2.1.3-cp36-cp36m-win_amd64.whl Processing d:\pymssql-2.1.3-cp36-cp36m-win_amd64.whl networkx 2.0 has requirement decorator>=4.1.0, but you'll have decorator 4.0.11 which is incompatible. Installing collected packages: pymssql Successfully installed pymssql-2.1.3 C:\Users\sas>