Python Module Not Found Error keeps popping up

Asked 2 years ago, Updated 2 years ago, 20 views

I'm trying to connect to GPU server and turn cycleGAN https://github.com/leimao/Image_Converter_CycleGAN/tree/799e09cd7b05e596e1aebc9520ce5b2387029787 Here, I run the code copied to clone, but I keep getting a message that there is no Progressbar on download.py and no tensorflow on train.py. I installed both with pip, but it doesn't work and only modulenotfound keeps coming out. Just in case, I reconnected it, but it keeps going like this. Is there any solution?

python

2022-09-21 10:12

1 Answers

ModuleNotFound does not have a module. Don't doubt the error message.

I've already installed it with pip, but many people ask me why it's not installed, but the problem is that the execution environment of pip and the execution environment when ModuleNotFound is generated are most likely different.

Python can create virtual environments to separate execution environments to avoid dependency conflicts between packages, maintain specific package versions, and have multiple execution environments, including 32-bit Python, 64-bit Python, and Python 2 and Python 3.

You need to run pip to verify that the execution environment on which the actual package is installed is the same as the execution environment when you run the script. In a command such as which python, or in a Python script,

import sys
print(sys.path)

For example, there is a way to check which environment is running.


2022-09-21 10:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.