Altan Halıgür
Altan Halıgür

Reputation: 27

What should I do with these error when I try to install strtotime?

When I try to install strtotime, its gives error, how can I solve that?

  Defaulting to user installation because normal site-packages is not writeable
  Collecting strtotime
  Using cached strtotime-1.0.4.zip (600 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 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\altanhaligur\AppData\Local\Temp\pip-install-u_jk3g0r\strtotime_8280b3f4653f4ee4b0b0dcf4456e7ea4\setup.py", line 33, in <module>
          extra_compile_args = sysconfig.get_config_var("CFLAGS").split()
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: 'NoneType' object has no attribute 'split'
      [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.

I think there are some errors about my python setup but do not want to delete everything and setup again, is there any ways to fix that?

Upvotes: 0

Views: 79

Answers (0)

Related Questions