我有理由应该使用 Tensorflow 1.x 版本,但它返回一个错误消息:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.2 (from versions: 2.2.0.rc1 ~~~~~
ERROR: No matching disribution found for tensorflow==1.15.2
Run Code Online (Sandbox Code Playgroud)
我也尝试过 .whl 安装,但最新的 Tensorflow 1.15.2 支持 cp37,我不能再使用它了。
pip 或 pypi 不再支持 tensorflow 1.x 吗?或者我应该降级 python(3.8 > 3.7) 并使用 .whl 文件安装 Tensorflow?
【系统环境】Ubuntu 20.04 LTS Python 版本:3.8.2 pip 版本:20.0.2
谢谢。
我想使用pip freeze > requirements.txt命令创建requirements.txt并复制到Google Drive以在Google Colab中使用,但出现如下错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/C:/ci/astroid_1592481955828/work'
Run Code Online (Sandbox Code Playgroud)
于是,我打开了requirements.txt,模块名后面有奇怪的东西开头@ files:\\\~~~
这是一个例子。
requirements.txt
~~~
jupyter-core==4.6.3
jupyterlab==2.2.6
jupyterlab-server @ file:///tmp/build/80754af9/jupyterlab_server_1594164409481/work
Keras==2.3.1
Keras-Applications @ file:///tmp/build/80754af9/keras-applications_1594366238411/work
Keras-Preprocessing==1.1.0
kiwisolver==1.2.0
~~~
Run Code Online (Sandbox Code Playgroud)
我使用 Anaconda 安装了这些模块,并将其存储在名为“TensorFlow”的虚拟环境中。
可以删除@ files:\\\~~~模块名称后面的东西吗?或者我应该做什么来解决这个问题?
谢谢。