Installation on PyCharm on Windows

28 views
Skip to first unread message

nadia...@gmail.com

unread,
Dec 17, 2018, 2:30:34 PM12/17/18
to ANNarchy
I cannot install ANNarchy on Pycharm community 2018.3 with Python 3.7.
Within PyCharm or with the command prompt I get this below.
First, is it possible to install in windows with PyCharm and Python 3.7?
Second, it mentions it wants Visual Studio Build Tools... I tried but it's many GB, is it necessary? Are all those GB necessary? I'm thinking the 'building tools. are a 'small' package...

Collecting ANNarchy
Requirement already satisfied: numpy in c:\users\joan\appdata\roaming\python\python37\site-packages (from ANNarchy) (1.15.4)
Requirement already satisfied: scipy in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from ANNarchy) (1.1.0)
Requirement already satisfied: matplotlib in c:\users\joan\appdata\roaming\python\python37\site-packages (from ANNarchy) (3.0.2)
Requirement already satisfied: cython in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from ANNarchy) (0.29.2)
Requirement already satisfied: sympy in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from ANNarchy) (1.3)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from matplotlib->ANNarchy) (2.7.5)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from matplotlib->ANNarchy) (2.3.0)
Requirement already satisfied: cycler>=0.10 in c:\users\joan\appdata\roaming\python\python37\site-packages (from matplotlib->ANNarchy) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\joan\appdata\roaming\python\python37\site-packages (from matplotlib->ANNarchy) (1.0.1)
Requirement already satisfied: mpmath>=0.19 in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from sympy->ANNarchy) (1.1.0)
Requirement already satisfied: six>=1.5 in c:\users\joan\appdata\local\programs\python\python37-32\lib\site-packages (from python-dateutil>=2.1->matplotlib->ANNarchy) (1.12.0)
Requirement already satisfied: setuptools in c:\users\joan\appdata\roaming\python\python37\site-packages (from kiwisolver>=1.0.1->matplotlib->ANNarchy) (40.6.3)
Installing collected packages: ANNarchy
  Running setup.py install for ANNarchy: started
    Running setup.py install for ANNarchy: finished with status 'error'
    Complete output from command C:\Users\joan\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\joan\\AppData\\Local\\Temp\\pycharm-packaging\\ANNarchy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\joan\AppData\Local\Temp\pip-record-4bf4mhzk\install-record.txt --single-version-externally-managed --compile --user --prefix=:
    No module named 'ANNarchy.core.cython_ext.Connector'
    No module named 'ANNarchy.core.cython_ext.Connector'
    Error: Could not import Cython modules. Try reinstalling ANNarchy.
    ANNarchy 4.6 (4.6.6) on win32 (nt).
    Checking for setuptools... OK
    Checking for numpy... OK
    Checking for cython... OK
    The system cannot find the path specified.
    Checking for CUDA... NO
    Warning: CUDA is not available on your system. Only OpenMP can be used to perform the simulations.
    warning: build_py: byte-compiling is disabled, skipping.
    
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    
    ----------------------------------------

Command "C:\Users\joan\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\joan\\AppData\\Local\\Temp\\pycharm-packaging\\ANNarchy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\joan\AppData\Local\Temp\pip-record-4bf4mhzk\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\joan\AppData\Local\Temp\pycharm-packaging\ANNarchy\



Julien Vitay

unread,
Dec 17, 2018, 4:29:47 PM12/17/18
to ANNarchy
It is not possible to use ANNarchy under WIndows. ANNarchy relies on gcc or clang to compile the code. We have tried multiple times to link Microsoft Visual Studio, but to no avail. Perhaps one day...

nadia...@gmail.com

unread,
Dec 17, 2018, 4:38:50 PM12/17/18
to ANNarchy
Thanks very much, I'll set up a Linux VM
Reply all
Reply to author
Forward
0 new messages