Closed sergsb closed 9 years ago
Proved in Linux too.
Yes, ok. I need to fix this. Trying to implement char-rnn in https://github.com/hughperkins/clnn currently. I havent forgotten you :-)
Hmmm, ok, exists on linux too, and I can replicate it (just have). That makes it easier to fix.
(hmmm, odd that it downloads the tar.gz when there is a perfectly good egg available)
Hmmm, what happens if you download the egg directly from https://pypi.python.org/pypi/DeepCL/5.10.2 , and then do easy_install DeepCL-5.10.2-py2.7-linux-x86_64.egg
? (or equivalent, depending on os/bitness).
(Of course, there are two mysteries:
)
(Fixed the setup.py so it creates a valid source distribution; I need to rerun the builds to upload this to pypi and so on)
Got the whole thing building on windows and linux again, and done a new release. For some unknown reason, pip is still downloading the tarball, rather than the egg. I'm not sure why? Anyway, it seems it builds ok now?
I have this problem on installing DeepCL from pip. From what I heard, /EHsc is a specific parameter for VS C++.
{lamb} pip install deepcl --pre --upgrade
Collecting deepcl
Using cached DeepCL-8.0.0.tar.gz
Building wheels for collected packages: deepcl
Running setup.py bdist_wheel for deepcl
Complete output from command C:\Anaconda3\python.exe -c "import setuptools;__file__='C:\\Users\\rilut\\AppData\\Local\\Temp\\pip-build-504kqvm_\\deepcl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\rilut\AppData\Local\Temp\tmp6tago5d3pip-wheel-:
version: 8.0.0
running bdist_wheel
running build
running build_ext
building 'PyDeepCL' extension
creating build
creating build\temp.win-amd64-3.4
creating build\temp.win-amd64-3.4\Release
C:\Anaconda3\pkgs\mingw-4.7-1\MinGW\bin\gcc.exe -mdll -O -Wall -Imysrc -Imysrc/lua -IC:\Anaconda3\include -IC:\Anaconda3\include -c PyDeepCL.cxx -o build\temp.win-amd64-3.4\Release\pydeepcl.o /EHsc
gcc: error: /EHsc: No such file or directory
error: command 'C:\\Anaconda3\\pkgs\\mingw-4.7-1\\MinGW\\bin\\gcc.exe' failed with exit status 1
----------------------------------------
Failed building wheel for deepcl
Failed to build deepcl
How to make pip compile DeepCL with VS C++ rather than gcc? I've installed VS 2013 Express.
@hughperkins no, it's from cmder
. I've just tested it with cmd
, but it's the same.
Should DeepCL be building with cl
instead of gcc
in windows? Why it was looking for gcc
?
Did my PATH is polluted or what?
@hughperkins Wow thanks for the detailed comment, I'll look into it.
I'm using Anaconda 2.2.0 (64-bit) (Python 3.4.3). But I think I also have a lot of things in my PATH
Hi, I've deleted all my useless replies, and updated the README.md for Python, iwth instructions for building from source :-) https://github.com/hughperkins/DeepCL/blob/master/python/README.md
Basically:
dist\bin\activate.bat
python
directorypython setup.py install
=> hopefully should work.... if still not working, then get back to me, and I'll work through it a bit.(PS, in case useful, as before, here is a link to the jenkins scripts, as before, but which I fixed just now, and tested, and they are working now, eg https://github.com/hughperkins/DeepCL/blob/master/jenkins/win64-py34.bat (which calls some other scripts from the same directory) They were broken earlier actually...)
I have this problem on installing DeepCL from pip.
Hmmm.... in theory.... installing from pip... should just be an install, no build. Perhaps you can try directly downloading the egg, and installing that? egg is eg: https://pypi.python.org/packages/3.4/D/DeepCL/DeepCL-8.1.2-py3.4-win-amd64.egg#md5=a6fe39f92d454abb32a2f74c5dcd9c3f (from http://deepcl.hughperkins.com/Downloads/ )
(PS sorry about the disorganized replies; I'm having to remember how the python builds work :-D )
I've faced with an error during installation on Windows 7, python 2.7(from Anaconda). pip install deepcl or python setup.py install resulting...
Is it a bug in installation script?