服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

这篇具有很好参考价值的文章主要介绍了服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

服务器安装pywin32报错:

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 这个没解决我的问题:

pycharm安装pywin32 报错:No matching distribution found for pywin32_棠宁的博客-CSDN博客_no matching distribution found for pywin32

然后还有人这样:

Could not find a version that satisfies the requirement win32api (from versions: ) No matching distribution found for win32api - 咣咣敲代码 - 博客园

我的问题还没解决。

有的人用下面这三种方法可以成功,而我都试了一遍,仍旧没用。

pip install pywin32

or

python -m pip install pywin32

or

pip --trusted-host pypi.python.org install pywin32

然后使用了下面镜像网站安装的一些方法,仍旧没用。

pip install pywin32 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com

pip install pywin32 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.co

pip install pywin32 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

报错大同小异,如下:

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 于是有试用了一下三个云镜像站。

1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
3) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

如前面一样把地址换成这三个试试。

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 很多人都已经解决了,我的问题依旧顽固,没弄好。

幸运的小伙伴问题到这里基本已经解决了。

不幸的小伙伴还要往后看,作者痛苦,读者也痛苦。

不像那些画美女图的画手,画手开心,观众也开心。

程序就是一条不归路。

继续往下看吧。

这一个:

先升级pip,再安装pywin32

python -m pip install --upgrade pip

Pycharm 中安装pywin32报错_pywin32安装失败_中二骚年的博客-CSDN博客

仍旧报同样的错。

ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32

于是

更新了一下

pip install --upgrade setuptools

然后再安装pywin32,仍旧报错

pip install pypiwin32==228
ERROR: Could not find a version that satisfies the requirement pypiwin32==228 (from versions: 219, 223)
ERROR: No matching distribution found for pypiwin32==228

参考:

完美解决 Could not find a version that satisfies the requirement 安装包名字 (from versions: )_戴国进的博客-CSDN博客

安装pip

LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~/2080$ python -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (22.3.1)

创建虚拟环境

pip3 install virtualenv

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~/2080$ pip3 install virtualenv
Collecting virtualenv
  Downloading virtualenv-20.17.1-py3-none-any.whl (8.8 MB)
     |████████████████████████████████| 8.8 MB 571 kB/s 
Collecting distlib<1,>=0.3.6
  Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)
     |████████████████████████████████| 468 kB 43.4 MB/s 
Collecting filelock<4,>=3.4.1
  Downloading filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting platformdirs<3,>=2.4
  Downloading platformdirs-2.6.2-py3-none-any.whl (14 kB)
Installing collected packages: distlib, filelock, platformdirs, virtualenv
  WARNING: The script virtualenv is installed in '/home/LIST_2080Ti/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed distlib-0.3.6 filelock-3.9.0 platformdirs-2.6.2 virtualenv-20.17.1

查询虚拟环境位置

whereis env

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 

安装虚拟扩展包

LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~/2080$ pip install virtualenvwrapper
Collecting virtualenvwrapper

  Downloading virtualenvwrapper-4.8.4.tar.gz (334 kB)
     |████████████████████████████████| 334 kB 438 kB/s 
Collecting stevedore
  Downloading stevedore-4.1.1-py3-none-any.whl (50 kB)
     |████████████████████████████████| 50 kB 3.6 MB/s 
Requirement already satisfied: virtualenv in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (from virtualenvwrapper) (20.17.1)
Collecting virtualenv-clone
  Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Collecting pbr!=2.1.0,>=2.0.0
  Using cached pbr-5.11.1-py2.py3-none-any.whl (112 kB)
Requirement already satisfied: platformdirs<3,>=2.4 in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (from virtualenv->virtualenvwrapper) (2.6.2)
Requirement already satisfied: distlib<1,>=0.3.6 in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (from virtualenv->virtualenvwrapper) (0.3.6)
Requirement already satisfied: filelock<4,>=3.4.1 in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (from virtualenv->virtualenvwrapper) (3.9.0)
Building wheels for collected packages: virtualenvwrapper
  Building wheel for virtualenvwrapper (setup.py) ... done
  Created wheel for virtualenvwrapper: filename=virtualenvwrapper-4.8.4-py2.py3-none-any.whl size=24833 sha256=79e4bcd94bd1bd3b9463cdc7948cf2f4c082925ae928146d856d82af6d1908f6
  Stored in directory: /home/LIST_2080Ti/.cache/pip/wheels/47/15/3d/7a26eaf92e79f80a3df3ac5f8e0f0f5b7efdf24d313c594a44
Successfully built virtualenvwrapper
Installing collected packages: pbr, stevedore, virtualenv-clone, virtualenvwrapper
  WARNING: The script pbr is installed in '/home/LIST_2080Ti/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script virtualenv-clone is installed in '/home/LIST_2080Ti/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pbr-5.11.1 stevedore-4.1.1 virtualenv-clone-0.5.7 virtualenvwrapper-4.8.4

pip in /home/LIST_2080Ti/.local/lib/python3.8/site-packages (22.3.1)

使用:

python -m pip install pypiwin32

报错 

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 

$  python -m pip install pypiwin32
Defaulting to user installation because normal site-packages is not writeable
Collecting pypiwin32
  Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
  Using cached pypiwin32-219.zip (4.8 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-7pq5lm_i/pypiwin32_ec6fed72462f42b88a11496e25dbe88a/setup.py", line 121
          print "Building pywin32", pywin32_version
                ^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

进入虚拟环境,直接在bin文件夹处,右键Copy Relative Path

source venv/bin/activate

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 

LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~$ source venv/bin/activate
(venv) LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~$ pip3 install -r niejianhao/CHB-MIT-DATA/epilepsy_eeg_classification/requirements.txt 
Collecting appdirs==1.4.4

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

退出虚拟环境

deactivate

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

 

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

修改系统环境变量——备注说明 

服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32

创建虚拟环境

(mrtrix3) LIST_2080Ti@ubuntu-SYS-7049GP-TRT:~$ virtualenv venvnjh 
created virtual environment CPython3.10.8.final.0-64 in 303ms
  creator CPython3Posix(dest=/home/LIST_2080Ti/venvnjh, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/LIST_2080Ti/.local/share/virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.6.3, wheel==0.38.4
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

当我试验了上面的所有方法都没有解决的时候,我只能把需求依赖集合中的pywin32注释掉,然后,问题没有了。

下面的这个讨论帖对于pywin32价值较大,仅供参考。

Could not find a version that satisfies the requirement pywin32>=223 · Issue #1172 · mhammond/pywin32 · GitHub文章来源地址https://www.toymoban.com/news/detail-445464.html

到了这里,关于服务器pip3配置requirements.txt时候could not find a version that satisfies the requirement pywin32的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决pip install -r requirements.txt 超时

    解决方案: 测试验证

    2024年02月08日
    浏览(37)
  • pip/conda导出 requirements.txt 注意事项

    Python 提供了强大的模块功能,能够方便开发者更加易于进行包的管理。 怎么将当前环境的安装包依赖信息导出呢? pip/conda提供了生成 requirements.txt 的功能,可以方便开发者在新的环境下进行一步式的依赖项安装。 有两种方式: 生成requirements.txt,pip freeze会将当前PC环境下所

    2023年04月14日
    浏览(33)
  • 【Python】使用 requirements.txt 和 pip 打包批量安装

    当我们程序越来越复杂,使用pip管理Python包(库)。我们可以方便的使用配置文件 requirements.txt 批量安装指定版本的指定包。 关于涉及到的pip官方的手册在这个位置: pip documentationv23.1.dev0 本文对以下内容进行说明: pip 的批量安装选项: -r requirements.txt 配置文件 requirements

    2024年02月16日
    浏览(39)
  • 设置pip3配置国内源

    豆瓣源:    `https://pypi.douban.com/simple/` 阿里源:   `https://mirrors.aliyun.com/pypi/simple` 验证         安装一个增强版的解释器ipython用于测试 安装完成 安装新的pip

    2024年02月08日
    浏览(30)
  • 【问题记录】pip install -r requirements.txt 安装失败

    一般在使用 pip 安装 python 相关的包的时候,可能会由于网络问题失败 可以采用国内镜像进行下载安装,复制下面代码重新进行下载安装: 安装成功:

    2024年02月15日
    浏览(36)
  • pip批量安装Python库 requirement.txt 离线环境无互联网环境下pip安装Python库

    平常需要写用Python写一些脚本处理数据 但是工作的环境比较特殊 开发环境是有互联网环境的 部署环境是隔离环境 没有互联网 所以记录一下处理的方案 将当前电脑环境的所有库全部导出 首先 将本地的所有库 导出到一个文本文件中 (本地可能是 pip 也可能是 pip3 ) 接着 在目录

    2024年02月20日
    浏览(32)
  • MAC解决pip install -r requirements.txt报错:error: externally-managed-environment

    python环境简直让人头疼,尤其有好几个版本的python、python升级等后 这里试过非常多方法:比如强制删除 毫无用处。。 最后还是使用简单老方法完美解决: 使用虚拟环境:创建、激活、安装

    2024年04月12日
    浏览(31)
  • 我们在选择服务器的时候,经常会看到单线服务器,多线服务器和BGP服务器,那这些线路的服务器有存在哪些不同呢?

    我们在选择服务器的时候,经常会看到单线服务器,多线服务器和BGP服务器,那这些线路的服务器有存在哪些不同呢? 单线 所谓的单线服务器是单网卡单个IP,指只有电信、联通或者移动一条线路。 缺点:由于线路单一,所选线路为电信线路时,联通或移动的用户访问时可

    2024年02月12日
    浏览(37)
  • 轮询的时候,总是报500服务器无法处理大量的请求

    HTTP 500 错误通常表示服务器内部错误。这意味着后端服务器出现了一些问题,导致它无法处理请求。如果你在调用任务状态的接口时总是遇到这个错误,可能有以下一些原因: 1.后端代码出现了错误,导致服务器无法正确处理请求。你可以查看服务器的日志,找出具体的错误

    2023年04月14日
    浏览(69)
  • ZLMediaKit流媒体服务器 RTSP推流时候的堆栈

    先直接看图 这是ffmpeg向流媒体服务器推流时候的堆栈 引入C++ 11之后  堆栈会显得特别繁复冗余 看起来 也没有 以前没有C++11之前那样 简单明了   太复杂了 标记下  很多函数名字被我改了 因为原来的看起来 同名函数太多了 C++11 和lambada 匿名函数 让看堆栈 成了地狱模式 

    2023年04月20日
    浏览(36)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包