Anaconda Python Conda Pipbuild Failed With Windowserror Cannot Find File
Solution 1:
I've had similar issues when trying to build PyPI packages with "conda pipbuild package-name", and I wasn't able to get it running on Windows 7 (x64). One useful workaround that I've found (if you want to install the package with "conda install package-name", into a specific conda environment) is as follows:
- Install the PyPI package with "pip install package-name"
- Upload the package to your binstar account with "binstar upload %conda_install_path%/pkgs/package-name-ver-py27.tar.bz2"
- Install the package into a specific conda env with "conda install -c https://conda.binstar.org/user-name package-name -p %path-to-conda-env%"
Solution 2:
There is a fix for the same issue on Python 3 at https://groups.google.com/a/continuum.io/d/msg/anaconda/6_reeaIjx5c/fhRjbA4AdQkJ. It involves editing the distutils\cygwinccompiler.py file in the Python standard library.
I think you can do the same thing in Python 2, though it may require some translation, as the Python 2 version of cygwinccompiler uses os.popen
instead of subprocess.check_output
. Assumedly you can just use subprocess.check_output(['gcc', '-dumpmachine'], shell=True)
in the relevant place in the file and it will fix the issue.
Post a Comment for "Anaconda Python Conda Pipbuild Failed With Windowserror Cannot Find File"