简体   繁体   中英

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:

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:

  • python : Python 3.8.5

Please help me with this problem. Thank you.

Windows has a maximum path length of 260 characters. That's why it's throwing error. Solution: Install the package in a folder which has shorter path. To help you remove max path error. Follow the link provided. Follow link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM