(Window) ctypessubprocess

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

解决

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

(Ubuntu) tensorflowgpu2.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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注