[英]pip install pacakge with an error “Could not install packages due to an EnvironmentError” occurred
When I installed the ansible module in Pycharm, the following error occurred:我在Pycharm中安装ansible模块时,出现如下错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\22946\\AppDat
a\\Local\\Temp\\pip-install-owwfux38\\ansible_bf2fa499f2d34802a4db896d6c1f85bc\\ansible_collections/amazon/aws/tests/unit/mo
dules/placebo_recordings/aws_direct_connect_connection/associations_are_not_updated/directconnect.DescribeConnections_1.json
'
The software version is as follows:软件版本如下:
Please help me with this problem.请帮我解决这个问题。 Thank you.
谢谢你。
Windows has a maximum path length of 260 characters. Windows 的最大路径长度为 260 个字符。 That's why it's throwing error.
这就是它抛出错误的原因。 Solution: Install the package in a folder which has shorter path.
解决方案:将 package 安装在路径较短的文件夹中。 To help you remove max path error.
帮助您消除最大路径错误。 Follow the link provided.
按照提供的链接。 Follow link
关注链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.