@iiggoorr73

Почему не устанавливаетс модуль osgeo?

у меня python 3.10, не ставится модуль osgeo v.0.0.1 что нужно сделать для установки?
изначально пробовал через pycharm 2022, после через командную строку, но увы...
сопровождающие ругательства ниже.
спасибо.
Collecting osgeo
  Using cached osgeo-0.0.1.tar.gz (1.2 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: osgeo
  Building wheel for osgeo (setup.py): started
  Building wheel for osgeo (setup.py): finished with status 'error'
  Running setup.py clean for osgeo
Failed to build osgeo
Installing collected packages: osgeo
    Running setup.py install for osgeo: started
    Running setup.py install for osgeo: finished with status 'error'

  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Asus\\AppData\\Local\\Temp\\pip-install-ztf9gl_e\\osgeo_1ef20cb841c34ffbb743bb09f667f32c\\setup.py'"'"'; __file__='"'"'C:\\Users\\Asus\\AppData\\Local\\Temp\\pip-install-ztf9gl_e\\osgeo_1ef20cb841c34ffbb743bb09f667f32c\\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\Asus\AppData\Local\Temp\pip-wheel-vqwyfymk'
       cwd: C:\Users\Asus\AppData\Local\Temp\pip-install-ztf9gl_e\osgeo_1ef20cb841c34ffbb743bb09f667f32c\
  Complete output (30 lines):
  running bdist_wheel
  running build
  C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\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 install
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\Asus\AppData\Local\Temp\pip-install-ztf9gl_e\osgeo_1ef20cb841c34ffbb743bb09f667f32c\setup.py", line 32, in <module>
      setup(
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\__init__.py", line 155, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
      return run_commands(dist)
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
      dist.run_commands()
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\wheel\bdist_wheel.py", line 335, in run
      self.run_command('install')
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\Asus\AppData\Local\Temp\pip-install-ztf9gl_e\osgeo_1ef20cb841c34ffbb743bb09f667f32c\setup.py", line 27, in run
      raise Exception(error_msg)
  Exception: In order to be able to run from osgeo import gdal,
  You were probably trying to install gdal by running pip install osgeo.
  Instead, you should either pip install gdal or replace osgeo with gdal in your requirements.
  ----------------------------------------
  ERROR: Failed building wheel for osgeo
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Asus\PycharmProjects\pythonProject\projectTTK\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.a
  • Вопрос задан
  • 267 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы