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

conda env create -f environment.yml error #537

Open
marsna opened this issue Apr 29, 2020 · 3 comments
Open

conda env create -f environment.yml error #537

marsna opened this issue Apr 29, 2020 · 3 comments

Comments

@marsna
Copy link

marsna commented Apr 29, 2020

Ran pip subprocess with arguments:
['F:\ProgramData\Anaconda3\envs\cv\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\Users
\Administrator\condaenv.ngu96vho.requirements.txt']
Pip subprocess output:
Collecting git+https://github.com/youngpark/cocoapi.git#subdirectory=PythonAPI (from -r C:\Users\Adm
inistrator\condaenv.ngu96vho.requirements.txt (line 5))
Cloning https://github.com/youngpark/cocoapi.git to c:\users\admini~1\appdata\local\temp\2\pip-req
-build-rn1luv66

Pip subprocess error:

@PatrickBue
Copy link
Contributor

@youngpark Any idea what might be causing this?

@masdc
Copy link

masdc commented May 15, 2020

Same problem here:

Ran pip subprocess with arguments:
['C:\Users\masdc\anaconda3\envs\cv\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\Users\masdc\source\repos\MicrosoftComputerVision\ComputerVision\condaenv.7a4lu6w5.requirements.txt']
Pip subprocess output:
Collecting git+https://github.com/youngpark/cocoapi.git#subdirectory=PythonAPI (from -r C:\Users\masdc\source\repos\MicrosoftComputerVision\ComputerVision\condaenv.7a4lu6w5.requirements.txt (line 5))
Cloning https://github.com/youngpark/cocoapi.git to c:\users\masdc\appdata\local\temp\pip-req-build-v9ez03ib

Pip subprocess error:
Running command git clone -q https://github.com/youngpark/cocoapi.git 'C:\Users\masdc\AppData\Local\Temp\pip-req-build-v9ez03ib'
fatal: unable to access 'https://github.com/youngpark/cocoapi.git/': Could not resolve host: github.com
ERROR: Command errored out with exit status 128: git clone -q https://github.com/youngpark/cocoapi.git 'C:\Users\masdc\AppData\Local\Temp\pip-req-build-v9ez03ib' Check the logs for full command output.

@masdc
Copy link

masdc commented May 15, 2020

I was able to resolve the issue, as this is a Window Only problem:

Install Visual C++ 2015 Build Tools from https://go.microsoft.com/fwlink/?LinkId=691126 with default selection.

Go to C:\Program Files (x86)\Microsoft Visual C++ Build Tools and run vcbuildtools_msbuild.bat

execute this command to erase the conda env, created when you tried to install the repository:

conda remove --name cv --all

If you want to start again from scratch , erase the complete directory where you downloaded the repo and start again with the installation process, as the documentation describes.

If you don't want to execute all the commands again to start a clean install, go to the directory where you downloaded the repository. In my case is: C:\Users\masdc\source\repos\MicrosoftComputerVision\ComputerVision
execute this command:

pip install git+"https://github.com/youngpark/cocoapi.git#subdirectory=PythonAPI"

This line is the one that was presenting error, and is the last one of the environment.yml file.

With this you will be able to install pycocotools.

Regards,

Millán

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