docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
755 stars 86 forks source link

Tensorflow 2.12.0 won't let pytorch 2.0.0 import, if it is imported first #1455

Closed RickSanchezStoic closed 1 year ago

RickSanchezStoic commented 1 year ago

Code to reproduce the error:

docker run --rm -it ubuntu:22.04
// once inside
apt-get update && apt-get install python3
apt-get install pip
pip install tensorflow -y
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118 -y
python3
import tensorflow
import torch

Note: the issue will persist even if you install torch-cpu, also on any Ubuntu:20.04 and above

thaJeztah commented 1 year ago

This looks to be an issue with installing packages inside a container, and not an issue with Docker itself.

Closing this in favor of https://github.com/tensorflow/tensorflow/issues/60389