【02】python脚本语言的编辑器安装和环境配置

版权声明:转载请注明出处: https://blog.csdn.net/gislaozhang/article/details/81843944

(1)将python根目录配置到window环境变量中。

在cmd中输入python,查看python版本。

(2)安装JetBrains PyCharm Community Edition 2016.2.3,安装程序在链接:https://pan.baidu.com/s/16wblwyOP7M58W2szYFuYIw 密码:fmmd

安装步骤,参考链接https://jingyan.baidu.com/article/e6c8503c6268aae54f1a18eb.html

在File——>Settings——>Project:pycharm——>Project Interpreter安装模块。

安装完的模块,存储在D:\CommonSoftware_install\ArcGIS10.3\Scripts,包括pip和easy_install等。

(3)将D:\CommonSoftware_install\ArcGIS10.3\Scripts路径配置到环境变量中。

(4)在cmd中通过pip安装requests模块。

如果报python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))…………错误。

解决方法pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

原因通过几次pip的使用,对于默认的pip源的速度实在无法忍受,于是便搜集了一些国内的pip源。(参考链接:https://blog.csdn.net/qq_25964837/article/details/80295041

下载的requests模块在:D:\CommonSoftware_install\ArcGIS10.3\Lib\site-packages\requests

(5)在PyCharm 编辑器中导入requests模块没有报错,同时运行代码,获取了结果。

参考连接:

http://xinzhi.wenda.so.com/a/1523458391619313 //如何在win7下安装python包工具pip

https://jingyan.baidu.com/article/ed15cb1bbc53581be369810d.html //Windows如何安装easy_install

https://jingyan.baidu.com/article/e6c8503c6268aae54f1a18eb.html //Python | 开发环境IDE PyCharm配置

https://blog.csdn.net/echojosedream/article/details/52938136 //python2.7安装requests模块

https://blog.csdn.net/qq_25964837/article/details/80295041 //python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))…………

猜你喜欢

转载自blog.csdn.net/gislaozhang/article/details/81843944