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: Can't install the package with pip command #53

Open
Beliefuture opened this issue Dec 19, 2021 · 1 comment
Open

Error: Can't install the package with pip command #53

Beliefuture opened this issue Dec 19, 2021 · 1 comment

Comments

@Beliefuture
Copy link

When I tried to install the package with the command pip install psqlparse. It did failed with the following output.
OS: WINDOWS 10.

Building wheels for collected packages: psqlparse
  Building wheel for psqlparse (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'E:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LE\\A
ppData\\Local\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"'; __file__='"'"'C:\\Users\\LE\\AppData\\Loca
l\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.re
ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\U
sers\LE\AppData\Local\TEMP_~1\pip-wheel-2dszy1_1'
       cwd: C:\Users\LE\AppData\Local\TEMP_~1\pip-install-a9q7ed_5\psqlparse\
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\psqlparse
  copying psqlparse\exceptions.py -> build\lib.win-amd64-3.7\psqlparse
  copying psqlparse\nodes.py -> build\lib.win-amd64-3.7\psqlparse
  copying psqlparse\__init__.py -> build\lib.win-amd64-3.7\psqlparse
  running build_ext
  error: [WinError 193] %1 Not a valid Win32 application.
  ----------------------------------------
  ERROR: Failed building wheel for psqlparse
  Running setup.py clean for psqlparse
Failed to build psqlparse
Installing collected packages: psqlparse
    Running setup.py install for psqlparse ... error
    ERROR: Command errored out with exit status 1:
     command: 'E:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LE1\
\AppData\\Local\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"'; __file__='"'"'C:\\Users\\LE\\AppData\\Lo
cal\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.
read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record '
C:\Users\LE\AppData\Local\TEMP_~1\pip-record-jmsarh_5\install-record.txt' --single-version-externally-managed --co
mpile --install-headers 'E:\Anaconda3\Include\psqlparse'
         cwd: C:\Users\LE\AppData\Local\TEMP_~1\pip-install-a9q7ed_5\psqlparse\
    Complete output (11 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\psqlparse
    copying psqlparse\exceptions.py -> build\lib.win-amd64-3.7\psqlparse
    copying psqlparse\nodes.py -> build\lib.win-amd64-3.7\psqlparse
    copying psqlparse\__init__.py -> build\lib.win-amd64-3.7\psqlparse
    running build_ext
    error: [WinError 193] %1 Not a valid Win32 application.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'E:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.ar
gv[0] = '"'"'C:\\Users\\LE\\AppData\\Local\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"'; __file__='"'"
'C:\\Users\\LE\\AppData\\Local\\TEMP_~1\\pip-install-a9q7ed_5\\psqlparse\\setup.py'"'"';f=getattr(tokenize, '"'"'o
pen'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'
"'exec'"'"'))' install --record 'C:\Users\LE\AppData\Local\TEMP_~1\pip-record-jmsarh_5\install-record.txt' --singl
e-version-externally-managed --compile --install-headers 'E:\Anaconda3\Include\psqlparse' Check the logs for full comman
d output.

@Beliefuture
Copy link
Author

My python information is shown below.

Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

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

1 participant