juancarlospaco / faster-than-requests

Faster requests on Python 3
https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e
MIT License
1.11k stars 90 forks source link

PIP Install Problem... #170

Closed steeljardas closed 2 years ago

steeljardas commented 3 years ago

I have tried installing with Pip and it keeps giving me an error, I'm also not too sure how to install packages any other way.. Trying to install on Windows 10 Python version = 3.9

`C:\Users\Administrator>pip install faster-than-requests Collecting faster-than-requests Using cached faster_than_requests-21.03.03.zip (4.9 MB) ERROR: Command errored out with exit status 1: command: 'c:\users\administrator\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-9viyr7u5\faster-than-requests_b36be11cfe8a439d84d49b75d7571c0b\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-9viyr7u5\faster-than-requests_b36be11cfe8a439d84d49b75d7571c0b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Administrator\AppData\Local\Temp\2\pip-pip-egg-info-00dg0mig' cwd: C:\Users\Administrator\AppData\Local\Temp\2\pip-install-9viyr7u5\faster-than-requests_b36be11cfe8a439d84d49b75d7571c0b\ Complete output (44 lines): WARNING: The wheel package is not available. ERROR: Command errored out with exit status 1: command: 'c:\users\administrator\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-wheel-kqgg866n\choosenim-install_3721c9862de94c139c18ba5a0ec1bc47\setup.py'"'"'; file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-wheel-kqgg866n\choosenim-install_3721c9862de94c139c18ba5a0ec1bc47\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\2\pip-wheel-dhp7cj_j' cwd: C:\Users\Administrator\AppData\Local\Temp\2\pip-wheel-kqgg866n\choosenim-install_3721c9862de94c139c18ba5a0ec1bc47\ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for choosenim-install
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
    subprocess.check_call(cmd)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\administrator\\appdata\\local\\programs\\python\\python39\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\tmp_cuayft_', '--quiet', 'choosenim_install']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Administrator\AppData\Local\Temp\2\pip-install-9viyr7u5\faster-than-requests_b36be11cfe8a439d84d49b75d7571c0b\setup.py", line 2, in <module>
    setuptools.setup(package_data = {"": ["*.nim", "*.nims", "*.cfg", "*.dll", "*.so", "*.h", "*.hpp"]})
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 164, in setup
    _install_setup_requires(attrs)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 159, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py", line 699, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 779, in resolve
    dist = best[req.key] = env.best_match(
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 1064, in best_match
    return self.obtain(req, installer)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 1076, in obtain
    return installer(requirement)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py", line 758, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['c:\\users\\administrator\\appdata\\local\\programs\\python\\python39\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\tmp_cuayft_', '--quiet', 'choosenim_install']' returned non-zero exit status 1.
----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/f0/9b/f392487c0ddb086aad681a781fbb1da4fcd2761920d20cfae18ecb724e67/faster_than_requests-21.03.03.zip#sha256=3cc247556e10c64d8897933304670c873236026b4ef9f219215b124e990c2dac (from https://pypi.org/simple/faster-than-requests/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement faster-than-requests (from versions: 21.3.3) ERROR: No matching distribution found for faster-than-requests`

george-studenko commented 3 years ago

Wanted to give it a go but I cannot install it either, I get a similar error

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for choosenim-install
ERROR: Failed to build one or more wheels
Parvat-R commented 3 years ago

Facing the same problem

muxueqz commented 3 years ago

@steeljardas @george-studenko @Parvat-R I got the same problem, and i used it to fix:

pip install wheel
github-actions[bot] commented 2 years ago

This issue is Stale because it has been open for 60 days with no activity. Contribute a fix or comment on the issue, or it will be closed in 3 days.

github-actions[bot] commented 2 years ago

This issue has been marked as Stale and closed due to inactivity.

tensX commented 2 years ago

Download the latest Windows version of choosenim from the releases page (the .zip file).

Extract the zip archive and run the runme.bat script. Follow any on screen prompts and enjoy your new Nim and choosenim installation.