question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pyproj crashes while installing from third party whl file

See original GitHub issue

Installation method/steps

  • pip install third_party_package_which_uses_pyproj.whl

Environment Information

  • Version 2.6.1
  • PROJ version 8.2.0
  • Python version (3.10.0 | packaged by conda-forge | (default, Nov 10 2021, 13:20:59) [MSC v.1916 64 bit (AMD64)] )
  • Operation System Information (Windows-10-10.0.19043-SP0)

The error log is as follows

ERROR: Command errored out with exit status 1:
   command: 'C:\Users\921479\Miniconda3\envs\third_party_package_environment\python.exe' 'C:\Users\921479\Miniconda3\envs\third_party_package_environment\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\921479\AppData\Local\Temp\tmpa6feu0w4'
       cwd: C:\Users\921479\AppData\Local\Temp\pip-install-zp62s_3e\pyproj_7ba085682b8944ed8aded4e28c0376c2
  Complete output (27 lines):
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-3.10
  creating build\lib.win-amd64-3.10\pyproj
  copying pyproj\datadir.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\enums.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\proj.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\transformer.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\utils.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\_show_versions.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\__init__.py -> build\lib.win-amd64-3.10\pyproj
  copying pyproj\__main__.py -> build\lib.win-amd64-3.10\pyproj
  creating build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\coordinate_operation.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\coordinate_system.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\crs.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\datum.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\enums.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\_cf1x8.py -> build\lib.win-amd64-3.10\pyproj\crs
  copying pyproj\crs\__init__.py -> build\lib.win-amd64-3.10\pyproj\crs
  running build_ext
  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/
  ----------------------------------------
  ERROR: Failed building wheel for pyproj
Failed to build pyproj
ERROR: Could not build wheels for pyproj which use PEP 517 and cannot be installed directly

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amine-aboufirasscommented, Jan 31, 2022

Hi @snowman2, thanks for your response:

  • python --version returns Python 3.8.0
  • pip --version returns pip 21.2.2`

I tried conda install pyproj and it looks like the package has no pyproj related issues anymore.

0reactions
snowman2commented, Jan 28, 2022

I see: packaged by conda-forge for your Python.

Have you tried conda install pyproj?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qgis crash when importing pyproj from plugin or console #659
I installed on ubuntu 18.04 : Qgis 3.12.3 pyproj 2.6.1.post1 using pip3 Each time I try to import pyproj in a plugin or...
Read more >
Getting ModuleNotFoundError when trying to import third party ...
So once pip invokes setup.py it crashes as mypyc (provided by mypy) isn't available. Removing the pyproject.toml file does work, but that's ...
Read more >
Python Extension Packages for Windows - Christoph Gohlke
Basemap: a matplotlib toolkit for plotting 2D data on maps based on GEOS. Requires pyproj. basemap_data_hires‑1.3.2‑py3‑none‑any.whl ...
Read more >
Home Assistant crashes, I do not know why. [log in post]
I get no errors when I check the configuration.yaml. ... Building wheel for dbus-fast (pyproject.toml): finished with status 'done'
Read more >
Changelog - pip documentation v22.3.1
When pip rewrites the shebang line in a script during wheel installation, update the hash and size in the corresponding RECORD file entry....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found