pip install -r requirements.txt 报错。

pip install -r requirements.txt -->

Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt' 

找了一圈,发现没有正确的答案,可能是版本太新了。那就按照提示来吧。

 

C:\Python39\Scripts>c:\python39\python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\python39\lib\site-packages (21.1.1)
Collecting pip
  Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 85 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.1
    Uninstalling pip-21.1.1:
      Successfully uninstalled pip-21.1.1
Successfully installed pip-21.1.2
==

C:\Python39\Scripts>pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
还是报错。其实可以忽略!

你用到那个模块,可以随时下载,不一定要有这个文件来安装模块。

 

c:\qskg>python Xdecrypt.py -p C:\Users\86133\Documents\NetSarang Computer\6\Xshell\Sessions\10.163.204.109.xsh
Traceback (most recent call last):
  File "c:\qskg\Xdecrypt.py", line 6, in <module>
    from win32api import GetComputerName, GetUserName
ModuleNotFoundError: No module named 'win32api'  

===缺什么,我们就安装什么也可以的====

c:\qskg>pip install pypiwin32  
Collecting pypiwin32
  Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting pywin32>=223
  Downloading pywin32-301-cp39-cp39-win_amd64.whl (9.3 MB)
     |████████████████████████████████| 9.3 MB 97 kB/s
Installing collected packages: pywin32, pypiwin32
Successfully installed pypiwin32-223 pywin32-301

 

c:\qskg>python Xdecrypt.py -p C:\Users\86133\Documents\NetSarang Computer\6\Xshell\Sessions\10.163.204.109.xsh
Traceback (most recent call last):
  File "c:\qskg\Xdecrypt.py", line 8, in <module>
    from Crypto.Hash import SHA256
ModuleNotFoundError: No module named 'Crypto'

c:\qskg>pip install pycryptodome
Collecting pycryptodome
  Downloading pycryptodome-3.10.1-cp35-abi3-win_amd64.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 544 kB/s
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.10.1

=====

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值