Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while running requirements.txt SRGAN project (Chapter 5) #205

Open
JDakhelpour opened this issue Jun 23, 2023 · 4 comments
Open

error while running requirements.txt SRGAN project (Chapter 5) #205

JDakhelpour opened this issue Jun 23, 2023 · 4 comments

Comments

@JDakhelpour
Copy link

I have experienced an error while installing requirements file to setup environment for chapter 5 project in book "generative adversarial networks projects"

Here is the error:

(venv) C:\Users\ASUS\JUPYTER Homeworks\T3\ebooks_codes\ebook GAN codes\Generative-Adversarial-Networks-Projects-master\Chapter05>pip install -r requirements.txt
Collecting absl-py==0.6.1 (from -r requirements.txt (line 1))
Using cached absl-py-0.6.1.tar.gz (94 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-7c7aj7k3\absl-py_00960106c6154cedbbbc364bb2a6225c\setup.py", line 34, in
raise RuntimeError('Python version 2.7 or 3.4+ is required.')
RuntimeError: Python version 2.7 or 3.4+ is required.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

this error is corresponding to absl-py package. Some of other packages also were not installed (absl-py==0.6.1
keras-contrib==2.0.8
Keras-Preprocessing==1.0.5
matplotlib==3.0.2
kiwisolver==1.0.1
Keras-Applications==1.0.6
numpy==1.15.4
opencv-python==3.4.5.20
Shapely==1.6.4.post2
six==1.12.0
tensorboard==1.12.2
)
would you please explain what I should do?
Your fast answer is highly appreciated.

Best regards

@kailashahirwar
Copy link
Collaborator

Hi, you need to use Python 2.7 or 3.4.

@JDakhelpour
Copy link
Author

I installed python 3.4 and I inserted the commands from chapter 5 of the book but it did not work

author comment

@JDakhelpour
Copy link
Author

JDakhelpour commented Jul 1, 2023 via email

@Maneesh04
Copy link

I am also facing similar problem, can you please recheck all packages version and update on in requirement.txt in all chapters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants