如何在colab.research上通过conda构建库?

Duc*_*een 5 python python-3.x anaconda conda google-colaboratory

所以我想使用python-occ库.它需要conda-forge建立.我尝试在基本笔记本中安装它

!wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
!chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
!bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p=conda3
!export PYTHONPATH=./conda3/lib/python
!export PATH=./conda3/bin/:$PATH
!conda install -y -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core
Run Code Online (Sandbox Code Playgroud)

然而它会在condas python中安装一个包.如何将oit安装包导入全局python或使用其python\libs文件夹进行cels interpritation?

那么,一个必须做的建立/安装带的东西condacolab

Dmi*_*kov 16

以下似乎有效:

!wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
!chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
!bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local
!conda install -y --prefix /usr/local -c <<<your wish>>>>

import sys
sys.path.append('/usr/local/lib/python3.6/site-packages/')
Run Code Online (Sandbox Code Playgroud)