Arcgis内自带的Python版本为2.7,软件下载后里面自带的第三方模块比较少,调用其他路径的python模块也容易报错。第三方库安装在Arcgis文件夹内,使得软件的工具,插件,IDLE都可以方便调用模块。

1. 首先确保Arcgis的Scripts路径下有pip.exe。Windows下一般默认路径是 "C:\Python27\ArcGIS10.6\Scripts",里面一般也有pip。没有的话需自行下载并安装在该文件夹内,可参考官网 https://pip.pypa.io/en/stable/installing/

Arcgis自带的Python内安装第三方库的方法

2. 打开cmd。输入"cd C:\Python27\ArcGIS10.6\Scripts" 到对应路径下,再输入 "pip install 模块名" 就OK了。

Arcgis自带的Python内安装第三方库的方法

3. 安装成功后,打开Arcgis,调出python窗口,即可测试是否安装成功。

Arcgis自带的Python内安装第三方库的方法

Reference:

https://stackoverflow.com/questions/26581838/installing-pip-using-arcgis-installed-python-2-7

https://blog.csdn.net/fbc3173/article/details/84192539

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-08-31
  • 2021-06-28
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-25
  • 2021-12-01
  • 2022-01-01
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案