我的IT部门不允许我使用pip或easy install从PyPi安装Python库包。
在某种程度上,我想我可以下载Python包,使用7-Zip解压内容,直到我公开setup.py文件。然后,通过在同一位置打开命令行,我可以输入
set path=%path%;C:\Python27\ArcGIS10.7\
和
python setup.py install
将库安装到我的Python目录中。这个技巧在Windows7上运行得很好。
我已经被“升级”到Windows10。当我尝试我的安装技巧时,Windows PowerShell返回这个
PS C:\TEMP\simplekml-1.3.1> set path=%path%;C:\Python27\ArcGIS10.7\
C:\Python27\ArcGIS10.7\ : The term 'C:\Python27\ArcGIS10.7\' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:17
+ set path=%path%;C:\Python27\ArcGIS10.7\
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Python27\ArcGIS10.7\:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException如何在Windows 10中安装这些Python包?
发布于 2019-12-17 02:10:36
您可以像这样编辑环境变量:
$env:path = $env:path + ";C:\Python27\ArcGIS10.7\"请事先检查$env:path末尾是否有分号。
发布于 2019-12-17 03:19:47
您可能没有访问权限来设置环境路径或任何其他文件设置在C:驱动器中,最好在桌面上下载并解压缩Python文件,然后转到脚本并转到命令提示符,使用路径并尝试使用PIP安装,因为您对桌面有完全控制,无需询问权限。
https://stackoverflow.com/questions/59361623
复制相似问题