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 when Installing on Windows #81

Closed
AbhayAysola opened this issue Nov 2, 2020 · 7 comments
Closed

Error when Installing on Windows #81

AbhayAysola opened this issue Nov 2, 2020 · 7 comments

Comments

@AbhayAysola
Copy link
Contributor

AbhayAysola commented Nov 2, 2020

ERROR: Command errored out with exit status 1: command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-30ah4gz4\\torch\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-30ah4gz4\\torch\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-h4a25iwr' cwd: C:\Users\user\AppData\Local\Temp\pip-install-30ah4gz4\torch\ Complete output (11 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\user\AppData\Local\Temp\pip-install-30ah4gz4\torch\setup.py", line 147, in <module> import numpy as np File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 138, in <module> from . import _distributor_init File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py", line 26, in <module> WinDLL(os.path.abspath(filename)) File "c:\python38\lib\ctypes\__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I've gotten this error when trying to install using pip on a windows machine. I've also tried installing using pipenv. Same error when installing from github directly by cloning and running pip install -e . as shown in the docs.

@AbhayAysola
Copy link
Contributor Author

AbhayAysola commented Nov 2, 2020

Update: I've searched around a little, and the problem seems to arise from a dependency problem or architecture mismatch. I will do a little more research and get back to you. AFAIK this error is not a problem with your code. When I try to install PyTorch on it's own I get the same error.

@AbhayAysola
Copy link
Contributor Author

Al right, so turns out my Python installation was acting up because of polluted environment issues so I did a clean install. I also installed PyTorch from the website instead of the pip install torch and it works now.

@AbhayAysola
Copy link
Contributor Author

Welp I spoke too soon. The package is installed but when I try to use any command I get ModuleNotFoundError: No module named '_curses'
I did mlt raw <random text here>

@AbhayAysola AbhayAysola reopened this Nov 2, 2020
@AbhayAysola
Copy link
Contributor Author

Turns out curses has a problem on windows systems, so I used pip install windows-curses and it finally works.

@jankrepl
Copy link
Owner

jankrepl commented Nov 2, 2020

Hey there, sorry if you had to struggle too much! Hopefully everything is working now!
I opened a ticket motivated by your issue - #83

@AbhayAysola
Copy link
Contributor Author

It works perfectly now, I'll be starting to look into it soon. I've got into touch typing very recently via a website called keybr.com . I now have improved my typing speed but unfortunately keybr.com didn't have support for custom training data which is very helpful. Thanks for making this tool :)

@jankrepl
Copy link
Owner

jankrepl commented Nov 2, 2020

I am happy you like it:)

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

No branches or pull requests

2 participants