在Google Colab中安装RDKit

奥尔德森

我不知道如何解决以下问题。直到今天,我仍在使用以下代码段在Google Colab中安装RDKit:

!wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!time bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!time conda install -q -y -c conda-forge rdkit

import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')

但是,今天我开始出现以下错误:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-d24c24e2d1f9> in <module>()
----> 1 from rdkit import Chem
      2 import networkx as nx

ModuleNotFoundError: No module named 'rdkit'

我尝试使用完整的Anaconda发行版代替Miniconda,并将python版本更改为3.6和3.8,但似乎没有任何效果。

奥利弗·斯科特(Oliver Scott)

我认为您在安装Miniconda时需要指定python 3.7(当前的rdkit版本支持python 3.7),最新的Miniconda版本为py3.8:

!wget -c https://repo.continuum.io/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh
!chmod +x Miniconda3-py37_4.8.3-Linux-x86_64.sh
!time bash ./Miniconda3-py37_4.8.3-Linux-x86_64.sh -b -f -p /usr/local
!time conda install -q -y -c conda-forge rdkit

import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')

https://colab.research.google.com/drive/1MAZyv3O4-TrI8c1MD4JVmwExDquaprRT?usp=sharing

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

如何在Google Colab中安装Anaconda

来自分类Dev

这些天如何在Google Colab中导入rdkit?

来自分类Dev

Google Colab中的ScispaCy

来自分类Dev

在Google Colab中安装Google云端硬盘时出现路径问题

来自分类Dev

无法在Google Colab上安装PySpark

来自分类Dev

无法在Google Colab中安装自定义软件包

来自分类Dev

在哪里可以找到安装在Google Colab中的现有软件包

来自分类Dev

访问Google Colab中的文件

来自分类Dev

Google Colab中的Spacy取代

来自分类Dev

如何将github存储库安装为Google colab中的当前目录文件夹?

来自分类Dev

朱莉娅在Google Colab中

来自分类Dev

Google Colab中的图形不完整

来自分类Dev

在Google Colab中重定向或查看stderr

来自分类Dev

在VSCode中编辑Google Colab Jupyter Notebook

来自分类Dev

使用Google Colab的TensorFlow 1中的TensorBoard

来自分类Dev

在Google Colab中退出插入模式

来自分类Dev

无法在Google Colab中运行Pyspark

来自分类Dev

在Google Colab中抓取动态Javascript网站

来自分类Dev

在Google Colab中打开JPG文件

来自分类Dev

!npx degit在Google Colab中如何工作?

来自分类Dev

在 Google Colab 中获取 jupyter 输出

来自分类Dev

Google colab Glove_Python pip安装无法正常工作

来自分类Dev

pip3在Google Colab上安装pyaudio

来自分类Dev

将conda软件包安装到Google Colab

来自分类Dev

Google Colab上的PyTorch Geometric CUDA安装问题

来自分类Dev

如何在Google Colab上安装Tensorflow的先前版本?

来自分类Dev

在Google Colab上安装Beam时如何解决错误

来自分类Dev

尽管使用Google Colab安装,但未找到Unicode模块

来自分类Dev

通过google colab安装python 3.7作为默认python