Install fails on Ubuntu 18 (VmWare VM)

33 views
Skip to first unread message

nadia...@gmail.com

unread,
Dec 19, 2018, 3:49:56 PM12/19/18
to ANNarchy
I have a VM with Ubuntu 18, installed Python 3.7 and PyCharm CE
Then I tried to install ANNarchy. At first it complained of some packages missing (Cython, sympy, etc)
I did that manually (is it a way to detect prerequisites?)
Anyways... Eventually failed like this:

noname.png

Cython is installed. 'which cython' returns the path.

Reinstalling ANNarchy is kind of a (black) joke because is what I want to do

I wonder if it has something to do with CUDA as it's not accessible from VMs

Hope someone has a solution

BR

Nadia


Julien Vitay

unread,
Dec 19, 2018, 5:37:52 PM12/19/18
to nadia...@gmail.com, ANNarchy
Hi,

you need to install the Python development files (python-dev or python3-dev on ubuntu). 

Normally pip installs the Python dependencies, but not the system libraries like python-dev or gcc. When you install from source, there is a requirements.txt file that can be used to install the Python dependencies with pip.

Best
Julien 

--
You received this message because you are subscribed to the Google Groups "ANNarchy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to annarchy+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/annarchy/3fce3d71-ba95-4097-b058-a8255bbe288b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Professur für Künstliche Intelligenz
Fakultät für Informatik
Technische Universität Chemnitz, 09107 Chemnitz
(+49) 371 531-39468
julien...@informatik.tu-chemnitz.de
http://www.tu-chemnitz.de/~vitay/

nadia...@gmail.com

unread,
Dec 19, 2018, 11:10:22 PM12/19/18
to ANNarchy
It's already installed, apparently (sudo apt install python3-dev)

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-dev is already the newest version (3.6.7-1~18.04).
python3-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 303 not upgraded.

BR
Nadia

Helge Dinkelbach

unread,
Dec 20, 2018, 2:21:14 AM12/20/18
to nadia...@gmail.com, ANNarchy
Hi,

in the past, CUDA devices weren't supported well in VMs but I didn't tried it recently. However CUDA is not mandatory for ANNarchy to run.

One could test:

python3-config --includes --libs

in order to check that the correct paths are set, as the "Python.h" was not found in the error message in your screenshot.

Best regards,
Helge

Julien Vitay

unread,
Dec 20, 2018, 9:00:56 AM12/20/18
to anna...@googlegroups.com
On a fresh VM install of Ubuntu 18.10, the following worked for me:

# Basic compiler
sudo apt install g++ python3-dev build-essential
# Python packages
sudo apt install python3-numpy python3-scipy python3-matplotlib python3-sympy python3-lxml python3-pip
# Cython 3 (not 2!)
sudo apt install cython3
# Install ANNarchy from pip3 (without dependencies, otherwise it installs numpy and co again)
pip3 install ANNarchy --no-deps

Could it be that you installed cython and not cython3?

I should perhaps add these commands to the doc or to the readme.
To unsubscribe from this group and stop receiving emails from it, send an email to annarchy+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages