Issues with Anaconda install

Post Reply
Leam
Posts: 2
Joined: Mon Jan 25, 2021 4:44 am

Issues with Anaconda install

Post by Leam »

I am trying to get NEURON up and running on Windows to be used with BMTK through a Conda environment.
I am on Win10 64-bit with conda (4.8.3), python 3.6.10.

I have installed the precompiled version of NEURON (VERSION 7.8.2) and all seems to be working well
(the DEMO through the GUI seems to working and I can use NEURON with python via the nrniv_python)

So far so good.

However, I can't import neuron from specific conda environments (or through python opened as a base environment from the command line.)

Do you know how I can get NEURON embedded as a package within a specific conda environment (i.e. where I have the BMTK package installed??)
I couldn't find anything on conda-forge for MSWin and I can't work it out myself (also somewhat restricted as doing this on a university managed device)

Hope this was clear enough question - if not let me know what you need from me...
Thanks in advance!
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Issues with Anaconda install

Post by hines »

From a terminal which can run the specific conda environment, do you have a PYTHOPATH that mentions c:\nrn\lib\python ?
If you launch python (in your specific conda environment and without such a PYTHONPATH) can you

Code: Select all

import sys
sys.path.append("c:/nrn/lib/python")
import neuron
neuron.test()
I can't recall but if you 'print (sys.path)` the syntax of the list items for windows may indicate that "c:\\nrn\\lib\\python" may be more appropriate.

Someday there is going to be a neuron wheel for windows python. At that point, I think a lot of installation issues will disappear as just 'pip install neuron' will suffice for installation.
Leam
Posts: 2
Joined: Mon Jan 25, 2021 4:44 am

Re: Issues with Anaconda install

Post by Leam »

I just wanted to update the thread to say that nrn/lib/python was actually correctly in my path and it turned out that the organisational security software was interfering with the package running in the background.
This has now been resolved.

Thanks for your help, it was instrumental to helping me resolving the issue!
Post Reply