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

Unable to install package with pip #14

Open
AntonFrisk opened this issue Feb 3, 2023 · 3 comments
Open

Unable to install package with pip #14

AntonFrisk opened this issue Feb 3, 2023 · 3 comments

Comments

@AntonFrisk
Copy link

AntonFrisk commented Feb 3, 2023

Unable to install this package through pip install.
Is this a general error, or just me?

Collecting gsee
  Using cached gsee-0.3.1.tar.gz (80 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: joblib>=0.12 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (1.2.0)
Requirement already satisfied: numpy>=1.15.0 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (1.22.3)
Requirement already satisfied: pandas>=0.23.4 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (1.4.2)
Requirement already satisfied: pyephem>=3.7.6 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (9.99)
Requirement already satisfied: scipy>=1.1.0 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (1.8.0)
Requirement already satisfied: xarray>=0.10.9 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from gsee) (2022.12.0)
Requirement already satisfied: pytz>=2020.1 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from pandas>=0.23.4->gsee) (2022.1)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from pandas>=0.23.4->gsee) (2.8.2)
Requirement already satisfied: ephem in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from pyephem>=3.7.6->gsee) (4.1.3)
Requirement already satisfied: packaging>=21.3 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from xarray>=0.10.9->gsee) (21.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from packaging>=21.3->xarray>=0.10.9->gsee) (3.0.8)
Requirement already satisfied: six>=1.5 in c:\users\anton\anaconda3\envs\djangoenv\lib\site-packages (from python-dateutil>=2.8.1->pandas>=0.23.4->gsee) (1.16.0)       
Building wheels for collected packages: gsee
  Building wheel for gsee (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      Attempting to compile pre-built Cython module
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\gsee
      copying gsee\brl_model.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\pv.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\trigon.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\_version.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\__init__.py -> build\lib.win-amd64-cpython-39\gsee
      creating build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\generate_pdfs.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\interface.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\pre_gsee_processing.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\progress.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\util.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\__init__.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      running egg_info
      writing gsee.egg-info\PKG-INFO
      writing dependency_links to gsee.egg-info\dependency_links.txt
      writing requirements to gsee.egg-info\requires.txt
      writing top-level names to gsee.egg-info\top_level.txt
      reading manifest file 'gsee.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'gsee.egg-info\SOURCES.txt'
      C:\Users\anton\anaconda3\envs\djangoenv\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'gsee.climatedata_interface' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'gsee.climatedata_interface' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'gsee.climatedata_interface' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'gsee.climatedata_interface' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying gsee\climatedata_interface\kt_h_sinusfunc.c -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\kt_h_sinusfunc.pyx -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      running build_ext
      building 'gsee.climatedata_interface.kt_h_sinusfunc' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/      
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gsee
  Running setup.py clean for gsee
Failed to build gsee
Installing collected packages: gsee
  Running setup.py install for gsee ... error
  error: subprocess-exited-with-error

  × Running setup.py install for gsee did not run successfully.
  │ exit code: 1
  ╰─> [61 lines of output]
      Attempting to compile pre-built Cython module
      running install
      C:\Users\anton\anaconda3\envs\djangoenv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\gsee
      copying gsee\brl_model.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\pv.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\trigon.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\_version.py -> build\lib.win-amd64-cpython-39\gsee
      copying gsee\__init__.py -> build\lib.win-amd64-cpython-39\gsee
      creating build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\generate_pdfs.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\interface.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\pre_gsee_processing.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\progress.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\util.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\__init__.py -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      running egg_info
      writing gsee.egg-info\PKG-INFO
      writing dependency_links to gsee.egg-info\dependency_links.txt
      writing requirements to gsee.egg-info\requires.txt
      writing top-level names to gsee.egg-info\top_level.txt
      reading manifest file 'gsee.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'gsee.egg-info\SOURCES.txt'
      C:\Users\anton\anaconda3\envs\djangoenv\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'gsee.climatedata_interface' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'gsee.climatedata_interface' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'gsee.climatedata_interface' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that 'gsee.climatedata_interface' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying gsee\climatedata_interface\kt_h_sinusfunc.c -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      copying gsee\climatedata_interface\kt_h_sinusfunc.pyx -> build\lib.win-amd64-cpython-39\gsee\climatedata_interface
      running build_ext
      building 'gsee.climatedata_interface.kt_h_sinusfunc' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/      
      [end of output]

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

× Encountered error while trying to install package.
╰─> gsee

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@MohammedBouasria
Copy link

hey @moijn001 I want to ask you, did you find a solution?
I'm facing the same problem, I don't want to use anaconda, if you solve this issue let me know, please.
Thank you in advance!

@AntonFrisk
Copy link
Author

AntonFrisk commented Feb 6, 2023 via email

@aemonge
Copy link

aemonge commented Jun 22, 2023

I've tried with the following versions of python 3.11, 3.9, 3.6, 3.5. And couldn't install it either.

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

3 participants