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

'hypergan' is not recognized as an internal or external command #269

Open
dudeymopster opened this issue Aug 6, 2020 · 15 comments
Open

Comments

@dudeymopster
Copy link

dudeymopster commented Aug 6, 2020

I installed all of hypergan's requirements and did pip3 install hypergan in cmd. No errors. I even tried adding C:\Users\[user]\AppData\Local\Programs\Python\Python37\Lib\site-packages\hypergan to PATH. Everytime I use hypergan in command prompt, I get the error 'hypergan' is not recognized as an internal or external command, operable program or batch file.

Screenshot of error:
https://i.imgur.com/bQP3aGy.png

OS: Windows 10

Any help is greatly appreciated.

@martyn
Copy link
Contributor

martyn commented Aug 7, 2020

Hi, it looks like the program is not in the path. I'm not sure why this is (we develop on linux) but windows support is top of the list after multi gpu support. I will tag this/similar tickets with 'windows support'. Our windows installer will resolve this.

@IIIBlueberry
Copy link
Contributor

it was probably due to removal of hypergan.cmd that exist on version 0.10
https://github.com/HyperGAN/HyperGAN/tree/0.10.1/bin

@martyn
Copy link
Contributor

martyn commented Aug 9, 2020

Good catch! This was a mistake so I've re-added the hypergan.cmd and re-released a new pip package.

@hujiba
Copy link

hujiba commented Aug 17, 2020

Hi, I've just installed HyperGAN today on Windows and I'm getting the same error. I used pip3 install hypergan and it installed the latest version with no issues. However, running hypergan train preset:celeba -s 128x128x3 to test it out gives the same error. Is there something that needs to be fixed or am I doing something wrong? Thanks!

@axel578
Copy link

axel578 commented Sep 16, 2020

Same for me doesn't work

@joajoajpedroj
Copy link

Running pip3 install hypergan on PowerShell as administrator seems to have solved this. However, when I run hypergan this "how do you wish to open this file" screen pops up
image

@badcode6
Copy link

badcode6 commented Nov 3, 2020

Same problem, renaming it to hypergan.py and running it with py hypergan.py makes it say hypergan is not a package

@Konradoslaw
Copy link

Konradoslaw commented Nov 5, 2020

You need to add manually the "hypergan.cmd" file, that @IIIBlueberry mentioned, to the anaconda3\envs\YOUR ENVIRONMENT\Scripts folder (on Win10 and Anaconda).

For some reason, pip still does not add this file during installation both on Windows 10 and MacOS (at least on my friend's MacBook).

@MasterCubo
Copy link

Hi, I've just installed HyperGAN today on Windows and I'm getting the same error. I used pip3 install hypergan and it installed the latest version with no issues. However, running hypergan train preset:celeba -s 128x128x3 to test it out gives the same error. Is there something that needs to be fixed or am I doing something wrong? Thanks!

same exact problem. Just installed with pip. @Konradoslaw where do I find said cmd file?

@MasterCubo
Copy link

MasterCubo commented Jan 9, 2021

You need to add manually the "hypergan.cmd" file, that @IIIBlueberry mentioned, to the anaconda3\envs\YOUR ENVIRONMENT\Scripts folder (on Win10 and Anaconda).

For some reason, pip still does not add this file during installation both on Windows 10 and MacOS (at least on my friend's MacBook).

also, that directory isn't familiar to me, I do not use anaconda. What is the parallel here?

Edit: I found something here: Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts but that seems different. Theres a "file" there called hypergan, 9KB, seems like the right thing without the .cmd extension

@Hedgy134117
Copy link

I've got the same exact problem as described here. I tried directly running the hypergan file in the directory, same error.

@MasterCubo
Copy link

I've got the same exact problem as described here. I tried directly running the hypergan file in the directory, same error.

Hello! If you join the discord, I had a really helpful person send me their files and work me through it and I'm pretty sure the main problem was with dependencies. Try doing pip3 freeze and sending me the results.

@BigSweaterMan
Copy link

You need to add manually the "hypergan.cmd" file, that @ IIIBlueberry mentioned, to the anaconda3\envs\YOUR ENVIRONMENT\Scripts folder (on Win10 and Anaconda).

For some reason, pip still does not add this file during installation both on Windows 10 and MacOS (at least on my friend's MacBook).

I have the same problem, how do I add hypergan.cmd? I am almost completely lost on how to solve this issue.

@dudeymopster
Copy link
Author

bump
still not working a year later

@lovebug0706
Copy link

bump, still not working.

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

No branches or pull requests