schung039 / neural_manifolds_replicaMFT

67 stars 21 forks source link

Install issues: python version and pytorch #8

Open GarrettBlair opened 1 year ago

GarrettBlair commented 1 year ago

I've spent some time recently installing this and found a couple issues and fixes. My typical python version (3.9.12) was yielding a lot of errors while installing the dependencies in a new environment via anaconda. The older numpy and scipy version required conflict with recent python, and I also needed to manually install pytorch and torchvision since I didn't have them and they weren't in the requirements.txt file. So here's my fix for a fresh install that currently works, using packages and python released around July 2019:

My sysem and python versions- OS - Windows 11 CPU - Intel Core i9-12900K, 3200 Mhz, 16 Core(s), 24 Logical Processor(s) GPU - NVIDIA 3080 pyhon version - 3.9.12 conda version - 4.14.0

My current install method

I downloaded and extracted the code repo ("neural_manifolds_replicaMFT-master").

In the conda prompt (anaconda.org), navigate to the location of the "\neural_manifolds_replicaMFT-master" folder containing the requirements.txt file

Create a new environment with python 3.6.9

(base) conda create -n py369 python=3.6.9 anaconda (base) conda activate py369

(py369) pip install -r requirements.txt (py369) pip install -e .

Install previous pytorch and torchvision releases, pytorch==1.1.0 torchvision==0.3.0 didn't work

(py369) conda install pytorch==1.5.1 torchvision==0.6.1 -c pytorch

Open up jupyter and the examples should work

(py369) jupyter notebook

sydddl commented 7 months ago

Thanks 🤟

caviaryusi commented 2 months ago

I followed this instruction and solved my environment problem, relly helpful. Thank you Garrett!

I'm using conda 23.7.4, python 3.11.4, on a Win 11 workstation. During the environment setting i ran into another the cvxopt import problem here: ImportError: DLL load failed: The specified module could not be found.

It could be the environment path or dll rename problem. Here's my solution: I added the C:\Users\Administrator.conda\envs\py369\Library\bin to both my user and system PATH, copied the mkl_rt.2.dll and mkl_intel_thread.2.dll in the previous folder and renamed the copies as mkl_rt.dll and mkl_intel_thread.dll. Don't know which part worked but happy to see it worked.