HyperGAN icon indicating copy to clipboard operation
HyperGAN copied to clipboard

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

Open dudeymopster opened this issue 5 years ago • 15 comments

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.

dudeymopster avatar Aug 06 '20 22:08 dudeymopster

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.

martyn avatar Aug 07 '20 13:08 martyn

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

IIIBlueberry avatar Aug 09 '20 08:08 IIIBlueberry

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

martyn avatar Aug 09 '20 12:08 martyn

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!

hujiba avatar Aug 17 '20 02:08 hujiba

Same for me doesn't work

axel578 avatar Sep 16 '20 17:09 axel578

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

joajoajpedroj avatar Sep 29 '20 12:09 joajoajpedroj

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

badcode6 avatar Nov 03 '20 22:11 badcode6

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).

Konradoslaw avatar Nov 05 '20 16:11 Konradoslaw

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?

cuboooooo avatar Jan 09 '21 17:01 cuboooooo

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

cuboooooo avatar Jan 09 '21 17:01 cuboooooo

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

Hedgy134117 avatar Jan 24 '21 04:01 Hedgy134117

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.

cuboooooo avatar Jan 24 '21 04:01 cuboooooo

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.

BigSweaterMan avatar Feb 05 '21 23:02 BigSweaterMan

bump still not working a year later

dudeymopster avatar Jul 26 '21 07:07 dudeymopster

bump, still not working.

lovebug0706 avatar Jul 21 '23 16:07 lovebug0706