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.

Unable to install pyproj on mac pro m1

See original GitHub issue

Code Sample, a copy-pastable example if possible

Not being able to install pyproj on an m1 mac using pip install pyproj

Here’s the error

Building wheels for collected packages: pyproj
  Building wheel for pyproj (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pyproj (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      PROJ_DIR is set, using existing PROJ installation..
      
      running bdist_wheel
      running build
      running build_py
      running build_ext
      building 'pyproj._geod' extension
      pyproj/_geod.c:704:10: fatal error: 'geodesic.h' file not found
      #include "geodesic.h"
               ^~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyproj
Failed to build pyproj
ERROR: Could not build wheels for pyproj, which is required to install pyproject.toml-based projects

Problem description

I was successfully able to install proj using brew but can’t seem to get this to work

Installation method

  • pip

Conda environment information (if you installed with conda):


Environment (conda list):
$ conda list proj


Details about conda and system ( conda info ):
$ junaidq1@gmail.com

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

15reactions
jannismaincommented, Mar 25, 2022

After reading the documentation about installing from source, the following worked for me:

pip uninstall -y pyproj
brew install proj
pip install pyproj --no-binary pyproj
2reactions
snowman2commented, Apr 22, 2022

pyproj==3.3.1 was just released and wheels shouldn’t be downloaded for Mac M1 anymore.

This should work:

brew install proj
python -m pip install pyproj

If it doesn’t please let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Impossible to install PYPROJ (M1 Mac mini Mac OS Monterey)
Hi, impossible to install pyproj. python3 -m pip install pyproj --user on a M1 Mac mini running Monterey 12.
Read more >
Error installing geopandas in python on mac m1
I'm able to "brew install proj" successfully but I get an error on the "pip install pyproj" step. this is the traceback I...
Read more >
Solving pyproj install error — ERROR: PROJ_DIR dir not ...
When I tried to install psycopg2, I faced this problem. ( in mac pro M1) ld: library not found for -lssl clang: error:...
Read more >
Installation - pyproj 3.4.1 documentation - GitHub Pages
The easiest methods for installing pyproj are: Use pip to install the binary wheels on PyPI: ... pyproj 3+ wheels do not include...
Read more >
How to install Tensorflow on the Apple M1 Notebook
Meanwhile, I've managed to get Tensorflow working on a MacPro M1 - NO ... I'm getting a lenghty error but also cannot install...
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