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

pip install issue #7

Open
Oreomeow opened this issue Sep 12, 2022 · 5 comments
Open

pip install issue #7

Oreomeow opened this issue Sep 12, 2022 · 5 comments

Comments

@Oreomeow
Copy link

When I use pip install pynat, I get an error because I don't have six installed. It's not good for me to add pynat in requirements.txt. Can the developer please fix this issue?

@FoliageOwO
Copy link

FoliageOwO commented Apr 15, 2023

just gotta a solution:

  1. download the latest file of six (.tar.gz): six
  2. extract to any path you want
  3. use command line, then do $ cd six-xxx && python setup.py install
  4. do the same steps to install pynat: pynat

@w311ang
Copy link

w311ang commented May 11, 2023

pip install --no-use-pep517 pynat

@brostosjoined
Copy link

brostosjoined commented Jul 26, 2023

C:\Users\rover>py -m pip install six
Requirement already satisfied: six in c:\users\rover\appdata\roaming\python\python311\site-packages (1.16.0)
C:\Users\rover>py -m pip install pynat
Collecting pynat
  Using cached pynat-0.7.0.tar.gz (7.1 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "C:\Users\rover\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\rover\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\rover\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\rover\AppData\Local\Temp\pip-build-env-nrl2d_mo\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\rover\AppData\Local\Temp\pip-build-env-nrl2d_mo\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "C:\Users\rover\AppData\Local\Temp\pip-build-env-nrl2d_mo\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\rover\AppData\Local\Temp\pip-build-env-nrl2d_mo\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 7, in <module>
        File "C:\Users\rover\AppData\Local\Temp\pip-install-wnbwzj7w\pynat_40a2a44d0c7b427aac56b2ccea4a792b\pynat.py", line 29, in <module>
          from six import text_type
      ModuleNotFoundError: No module named 'six'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@VaporTang
Copy link

Try installing six using anaconda navigator and then open a terminal in your environment and type "pip install pynat"

@jophy
Copy link

jophy commented Feb 28, 2024

pip install six

pip install setuptools wheel

pip install --no-use-pep517 pynat

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

6 participants