installation - 将 rasa-x 安装到办公室笔记本电脑的问题
问题描述
我尝试使用以下命令在我的办公室笔记本电脑上安装 rasa-x:
python -m pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
但它给了我以下错误:
Looking in indexes: https://pypi.org/simple, https://pypi.rasa.com/simple
Collecting rasa-x
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /rasa-packages/8789/rasa-x/rasa_x-0.31.0-py3-none-any.whl?Signature=hPxskutJmwG%2BUsEc8KuXK5JZ1%2B8P2FGKtUzD8dQGgTlKilNJyNJJO5WrCb1ON2E50k8qjLDHGkjx1XWLjxMfsJUD5wrekFPyeSPSadIgk21lNHzi7NgPi0r9NAl4t6pNln%2FPTtabxzY358ZYiov4wXAEAGyi8BxkAQZ73mnSSK4NE%2FlNnq1%2FVuZknUI3c3NBIbHZBgFExsx33kVpXfD4uGH%2FSdKWV0b9UJBnAPG3UM9OQ8EdJSB7ZYNPup1KEJuYvtrWWh7VrtvzhrmRy48RylbJZN9MlPcb02uoxDQ8uCOLGxyPUuk9sn0C8IYH6mdnUK5ODjQmA3DVxKz5l%2BuN6w%3D%3D&GoogleAccessId=pypi-storage%40pypi-190908.iam.gserviceaccount.com&Expires=1595317457 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
但我认为如果公司代理不允许访问 pypi.org,就会发生这种情况。” 我进一步尝试使用以下命令安装 rasa-x:
python -m pip install --trusted-host=pypi.python.org rasa-x
但我仍然遇到以下错误:
Collecting rasa-x
Using cached rasa-x-0.0.2.tar.gz (1.4 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\agupt80\\AppData\\Local\\Temp\\pip-install-wnjmorry\\rasa-x\\setup.py'"'"'; __file__='"'"'C:\\Users\\agupt80\\AppData\\Local\\Temp\\pip-install-wnjmorry\\rasa-x\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2'
cwd: C:\Users\agupt80\AppData\Local\Temp\pip-install-wnjmorry\rasa-x\
Complete output (13 lines):
running egg_info
creating C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info
writing C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\PKG-INFO
writing dependency_links to C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\dependency_links.txt
writing top-level names to C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\top_level.txt
writing manifest file 'C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\SOURCES.txt'
writing manifest file 'C:\Users\agupt80\AppData\Local\Temp\pip-pip-egg-info-ghomfeg2\rasa_x.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\agupt80\AppData\Local\Temp\pip-install-wnjmorry\rasa-x\setup.py", line 39, in <module>
raise RuntimeError('Please use `pip install rasa-x -i https://pypi.rasa.com/simple` instead to install the rasa-x package')
RuntimeError: Please use `pip install rasa-x -i https://pypi.rasa.com/simple` instead to install the rasa-x package
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
有人可以帮我解决这个问题。
感谢和问候阿米特古普塔
解决方案
这应该有效。试一把。
“pip install rasa-x -i https://pypi.rasa.com/simple --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.rasa.com --trusted-host storage.googleapis.com --proxy=proxy.example.com”
推荐阅读
- java - 如何修复 onDestroy 的“SuperNotCalledException”?
- visual-studio - 如何设置代码生成任务的构建依赖项?
- git - 如何使用 DB URI 手动连接到 heroku 数据库
- c# - Web 服务器上的 System.Net.Http.HttpRequestException
- javascript - JavaScript 扩展一个类,同时将 WeakMap 用于私有变量
- android - CardView 而不是 FrameLayout 使对话框更宽?
- c# - 在 ASP .NET CORE 中更新 Web 应用程序替换文件或删除文件,更新时如何将文件保留在应用程序中
- functional-programming - 获取解决方案的随机子集
- html - 使用 Thymeleaf 为嵌套对象创建表单的问题
- apache-kafka - 消费者和生产者因错误而失败:“在读取响应之前已断开与 0 的连接”