(Window) ctypes、subprocess

ERROR: Could not find a version that satisfies the requirement ctypes(from versi ons: none )
EROR: No matching distribution found for ctypes

解决:

其实python自带ctypes和subprocess模块
检查一下python(import 不报错)。。。就会发现装不上,是因为不用装
在这里插入图片描述

(Ubuntu) tensorflow-gpu2.4

显示没有对应的版本或者对应版本只有1没有2
Ubuntu检查python的版本,输入python一般会提示没有,若提示python2的版本,卸载
Ubuntu查看Python版本,使用的是Python3

完全卸载python2.7
sudo apt-get remove python2.7
sudo apt-get remove --auto-remove python2.7

pip安装,使用清华镜像源

pip install tensorflow-gpu-2.4.1 --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐