当前位置: 必赢官网 > 计算机编程 > 正文

anaconda安装加速镜像问题解决www.437.com

时间:2019-12-26 05:58来源:计算机编程
安装流程参考下面链接:其中appium安装过程中要特别注意版本,需要与adb版本对应2环境配置:用户环境配置path和系统环境配置path需要配置统一,如果同时存在python2和python3,需要区分

安装流程参考下面链接:其中appium安装过程中要特别注意版本,需要与adb版本对应2环境配置:用户环境配置path和系统环境配置path需要配置统一,如果同时存在python2和python3,需要区分环境,可参考Python27pip2 install robotframework-appiumlibraryCollecting robotframework-appiumlibrary Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC3C8: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040ECA90: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC128: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC438: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC240: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/ Could not find a version that satisfies the requirement robotframework-appiumlibrary (from versions: )No matching distribution found for robotframework-appiumlibrary遇到此类报错,说明是代理有问题,先看一下是否有代理冲突如谷歌浏览器安装了代理,如果没有,可以进入系统文件,直接删除与代理相关的文件,可以参考以下文档:pycrypto这个文件安装后才可以安装robotframework-sshlibrary :command: pybot.bat --argumentfile c:usersyukixingappdatalocaltempRIDEqq0r86.dargfile.txt --listener C:studyappPython2Libsite-packagesrobotidecontribtestrunnerTestRunnerAgent.py:56955:False C:UsersyukixingDesktop工作笔记RF测试起手式[Error 267] 参考以下方法sys.setdefaultencoding('utf8') 另一个方案是在python的Libsite-packages文件夹下新建一个sitecustomize.py,内容为:Python代码 # encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8') 此时重启python解释器,执行sys.getdefaultencoding(),发现编码已经被设置为utf8的了,多次重启之后,效果相同,这是因为系统在python启动的时候,自行调用该文件,设置系统的默认编码,而不需要每次都手动的加上解决代码,属于一劳永逸的解决方法。6:安装过程中出现publisher库,原因可能是python2和python3环境混乱,获取不都啊正常的库,可以采用以下方法:1查看环境配置是否正常2pip卸载后,重装3保持python环境纯净,只保留python27每次执行ride.py文件很麻烦,可以创建快捷键,文档很多,可以直接百度8所有环境安装完成后,百度例子,运行简单程序,看是否报错,确认环境安装成功9pip使用方法很多,如安装卸载,打包安装10RIDE使用方法安装

virtualenv创建新的虚拟环境

Anaconda使用conda连接网络出现错误

我使用的是windows10 64bit下的Anaconda2,在安装和更新包的时候出现以下报错信息。
这是使用默认源安装包的报错信息:
C:Usersning0>conda install numpy
Fetching package metadata ...

CondaHTTPError: HTTP None None for url https://repo.continuum.io/pkg...
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000048F3048>: Failed to establish a new connection: [Errno 10061] ',)))",),)

下面是使用清华大学的镜像安装的报错信息:
C:Usersning0>conda install numpy
Fetching package metadata ...

CondaHTTPError: HTTP None None for url https://mirrors.tuna.tsinghua...
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ProxyError(MaxRetryError("HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anaconda/pkgs/free/win-64/repodata.json (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000004B19438>: Failed to establish a new connection: [Errno 10061] ',)))",),)

解决方案:

亲测有效!

正常指令如下

virtualenv enviroment 创建名为enviroment的虚拟环境
virtualenv -h 查看指定的帮助信息
virtualenv enviroment --system-site-packages 从系统中继承已有的python环境
virtualenv官方链接

出现的问题-a

error: Error -5 while decompressing data: incomplete or truncated stream
OSError: Command /home/fangjiaqian/test/bin/python - setuptools pip wheel failed with error code 2

问题-a的原因

setuptools无法正确安装

解决方案

virtualenv enviroment --no-setuptools
从setuptools官方下载安装包并且安装,参考链接setuptools
也可以参考以下安装说明进行安装setuptools安装

pip安装package

pip install package_name

出现的问题

AppStream cache update completed, but some metadata was ignored due to errors, connecting to 127.0.0.1:36627... failed: refused to connection
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f70c5dd8ad0>: Failed to establish a new connection: [Errno 111]

出现这个问题的原因

本地网络走了代理服务

解决方案

export | grep -i proxy 查看代理服务
若端口确实被代理占用,则关闭代理,指令如下
a. unset HTTPS_PROXY
b. unset https_proxy
这个问题的原因我由于没有仔细看输出信息,真的卡了挺久,重新安装pip也没有用,wget可能也有相关问题,可以参考weget

编辑:计算机编程 本文来源:anaconda安装加速镜像问题解决www.437.com

关键词: 必赢官网