PythonCharmers / python-future

Easy, clean, reliable Python 2/3 compatibility
http://python-future.org
MIT License
1.17k stars 291 forks source link

future-0.18.3 python37/39/312 install failed #630

Open xingyun86 opened 10 months ago

xingyun86 commented 10 months ago

future-0.18.3 python37/39/312 install failed

  Using cached http://mirrors.aliyun.com/pypi/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz (840 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\yfpps\AppData\Local\Temp\pip-install-n7thd398\future_9de4fec0af234f9ca6302e0f1d7c0664\setup.py", line 86, in <module>
          import src.future
      ModuleNotFoundError: No module named 'src'
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Resolution:

add code in setup.py.

import sys
+ sys.path.append('')
smrrazavian commented 9 months ago

I have a same issue here for 0.18.3 version. my python version is 3.18.2.