System Environment Setup

According to the record last week, I'tried to finish the tasks below by order. Since I havent used python before, those works were more difficult than they seem to be.


1. Package climi and GPy installation for python environment 

https://github.com/SheffieldML/GPy/issues/649 (resolution for Gpy )
???? (climin)

2. https://blender.stackexchange.com/a/51800 (link the anaconda environment to Blender)


3. Issues may happen 

Error when importing numpy, see here: https://stackoverflow.com/a/56009839
Error when importing keras/GPy, see here: https://stackoverflow.com/a/19105436



• Climin installation

This package cannot be found in anaconda package manager, it is currently only available via git from github. I took the research on like ' how to install packages on python', ' how to download packages from github'. All those operations are based on some very simple codes, it still took me a while though. The right approach is: 

(1) install gitbash and set it as the path in the base environment


(2) use the code: git clone https://github.com/BRML/climin.git




• GPy installation

At the author's time, GPy was incompatiable with python3.7. Fortunately, that issue was sovled since 3.8. 

Use the code: conda install -c conda-forge/labelcf202003 gpy






• Other Packages(numpy,scipy,matplotlib,keras)

The rest of packages can be simply set up with:
pip(or conda, based on environment) install XXXX(package name) 

what's worth to mention is keras with gpu tensorflow is the specifically required one, but it turned out that keras-gpu is no longer exists, which was intergrated with keras all together.

• Virtual Environment

When I was searching implementation method, I read the suggestion that it'd be better running in virtual environment if a bunch of packages are involved. So I quickly scaned tutorials and tried different combinations such as packages in base environment, in anaconda and in the virtual environment made by anaconda. One miss I had was I should've given a more compatiable version to the virtual one like 3.6 for more possible demands.



• Link to Blender

I was DESTROYED in the part. I tried to build up a virtual environment for blender, but somehow, those packages are failed to be installed for sorts of reasons (version below 3.7). On the other hand, my python for the base is also 3.8 but they all worked well as I mentioned above. Also, according to the author, minimum python version is 3.70, which is contradictory.





Resolution for this

plan1: dig deeper into compatibility on packages, see if there are any other ways to embed.

plan2: Build a 3.6 and test in the Blender first.




Comments

Popular posts from this blog

Thesis Progress - Noise Map

Thesis Progress - Schedule Check

Thesis Progress - Procedural 3D texture