简体   繁体   中英

Proj executable PROJ_DIR not found when pip installing floris local editable installation

When trying to install floris local editable installation using pip and the most recent github repo (develop branch) I get the following error:

  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\nilsg\Miniconda3\envs\florisEnv\python.exe' 'C:\Users\nilsg\Miniconda3\envs\florisEnv\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\nilsg\AppData\Local\Temp\tmpl5e1fb4s'
       cwd: C:\Users\nilsg\AppData\Local\Temp\pip-install-h135k_66\pyproj
  Complete output (1 lines):
  Proj executable not found. Please set PROJ_DIR variable.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\nilsg\Miniconda3\envs\florisEnv\python.exe' 'C:\Users\nilsg\Miniconda3\envs\florisEnv\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\nilsg\AppData\Local\Temp\tmpl5e1fb4s' Check the logs for full command output.

So far I have tried clearing the cache, reinstalling pyproj and reinstalling Miniconda with no luck.

I'm not sure if you can do an editable pip install under conda. An alternative is to use conda-build and conda-develop: conda develop floris/ .

This article doesn't address this problem specifically, but you should be aware of potential problems when mixing both: https://www.anaconda.com/using-pip-in-a-conda-environment/ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM