RDkit | 安装报错及使用

关于RDKit的学习及介绍:
RDKit安装
基础教程:[Getting Started with RDKit in Python]
RDkit四:数据处理过程中smiles编码的清洗统一化
reticulate-R Interface to Python

在RStudio中加载 rdkit.Chem和rdkit.Chem.rdmolops 时,报错,根据保存内容提示,是需要先安装python的,具体安装及设置参考:Python | 安装、环境配置及包的安装。

# reticulate包涵盖了用于Python和R之间协同操作的全套工具,在R和Rstudio中均可使用
library(reticulate)## 6.2 安装rdkit包
reticulate::py_install("rdkit")# 加载rdkit.Chem和rdkit.Chem.rdmolops
rdkit <- import("rdkit.Chem")
rdmolops <- import("rdkit.Chem.rdmolops")
remover <- import("rdkit.Chem.SaltRemover")

在这里插入图片描述
报错如下

> rdkit <- import("rdkit.Chem")
Error in stop_no_virtualenv_starter(version = version, python = python) : Suitable Python installation for creating a venv not found.
Please install Python with one of following methods:
- https://www.python.org/downloads/
- reticulate::install_python(version = '<version>')

在这里插入图片描述

更详细的安装及调用报错过程可参考:reticulate | R-python调用 | 安装及配置 | conda文件配置。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
v

> reticulate::py_install("rdkit")
+ "C:/Users/hp/AppData/Local/r-miniconda/condabin/conda.bat" "install" "--yes" "--prefix" "C:/Users/hp/AppData/Local/r-miniconda/envs/r-reticulate" "-c" "conda-forge" "rdkit"
Retrieving notices: ...working... done
Channels:- conda-forge- defaults
Platform: win-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done## Package Plan ##environment location: C:\Users\hp\AppData\Local\r-miniconda\envs\r-reticulateadded / updated specs:- rdkitThe following packages will be downloaded:package                    |            build---------------------------|-----------------brotli-1.1.0               |       hcfcfb64_1          19 KB  conda-forgebrotli-bin-1.1.0           |       hcfcfb64_1          20 KB  conda-forgecairo-1.18.0               |       h1fef639_0         1.4 MB  conda-forgecertifi-2023.7.22          |     pyhd8ed1ab_0         150 KB  conda-forgecontourpy-1.2.0            |   py39h1f6ef14_0         182 KB  conda-forgecycler-0.12.1              |     pyhd8ed1ab_0          13 KB  conda-forgeexpat-2.5.0                |       h63175ca_1         221 KB  conda-forgefont-ttf-dejavu-sans-mono-2.37|       hab24e00_0         388 KB  conda-forgefont-ttf-inconsolata-3.000 |       h77eed37_0          94 KB  conda-forgefont-ttf-source-code-pro-2.038|       h77eed37_0         684 KB  conda-forgefont-ttf-ubuntu-0.83       |       hab24e00_0         1.9 MB  conda-forgefontconfig-2.14.2          |       hbde0cde_0         186 KB  conda-forgefonts-conda-ecosystem-1    |                0           4 KB  conda-forgefonts-conda-forge-1        |                0           4 KB  conda-forgefonttools-4.44.0           |   py39ha55989b_0         1.7 MB  conda-forgefreetype-2.12.1            |       hdaf720e_2         498 KB  conda-forgefreetype-py-2.3.0          |     pyhd8ed1ab_0          58 KB  conda-forgegettext-0.21.1             |       h5728263_0         5.3 MB  conda-forgegreenlet-3.0.1             |   py39h99910a6_0         188 KB  conda-forgeicu-73.2                   |       h63175ca_0        12.8 MB  conda-forgeimportlib-resources-6.1.1  |     pyhd8ed1ab_0           9 KB  conda-forgeimportlib_resources-6.1.1  |     pyhd8ed1ab_0          29 KB  conda-forgekiwisolver-1.4.5           |   py39h1f6ef14_1          54 KB  conda-forgelcms2-2.15                 |       h67d730c_3         487 KB  conda-forgelerc-4.0.0                 |       h63175ca_0         190 KB  conda-forgelibboost-1.82.0            |       h65993cd_6         2.3 MB  conda-forgelibboost-python-1.82.0     |   py39h5c3ab46_6         108 KB  conda-forgelibbrotlicommon-1.1.0      |       hcfcfb64_1          69 KB  conda-forgelibbrotlidec-1.1.0         |       hcfcfb64_1          32 KB  conda-forgelibbrotlienc-1.1.0         |       hcfcfb64_1         241 KB  conda-forgelibdeflate-1.19            |       hcfcfb64_0         150 KB  conda-forgelibexpat-2.5.0             |       h63175ca_1         135 KB  conda-forgelibglib-2.78.1             |       he8f3873_0         2.5 MB  conda-forgelibjpeg-turbo-3.0.0        |       hcfcfb64_1         804 KB  conda-forgelibpng-1.6.39              |       h19919ed_0         336 KB  conda-forgelibtiff-4.6.0              |       h6e2ebb7_2         769 KB  conda-forgelibwebp-base-1.3.2         |       hcfcfb64_0         263 KB  conda-forgelibxcb-1.15                |       hcd874cb_0         947 KB  conda-forgem2w64-gcc-libgfortran-5.3.0|                6         342 KB  conda-forgem2w64-gcc-libs-5.3.0       |                7         520 KB  conda-forgem2w64-gcc-libs-core-5.3.0  |                7         214 KB  conda-forgem2w64-gmp-6.1.0            |                2         726 KB  conda-forgem2w64-libwinpthread-git-5.0.0.4634.697f757|                2          31 KB  conda-forgematplotlib-base-3.8.1      |   py39hf19769e_0         6.3 MB  conda-forgemsys2-conda-epoch-20160418 |                1           3 KB  conda-forgemunkres-1.1.4              |     pyh9f0ad1d_0          12 KB  conda-forgeopenjpeg-2.5.0             |       h3d672ee_3         231 KB  conda-forgepackaging-23.2             |     pyhd8ed1ab_0          48 KB  conda-forgepandas-2.1.3               |   py39h32e6231_0        10.7 MB  conda-forgepcre2-10.40                |       h17e33f8_0         1.9 MB  conda-forgepillow-10.1.0              |   py39h368b509_0        44.2 MB  conda-forgepixman-0.42.2              |       h63175ca_0         445 KB  conda-forgepthread-stubs-0.4          |    hcd874cb_1001           6 KB  conda-forgepycairo-1.25.1             |   py39h82915f6_0         101 KB  conda-forgepyparsing-3.1.1            |     pyhd8ed1ab_0          87 KB  conda-forgepython-dateutil-2.8.2      |     pyhd8ed1ab_0         240 KB  conda-forgepython-tzdata-2023.3       |     pyhd8ed1ab_0         140 KB  conda-forgepytz-2023.3.post1          |     pyhd8ed1ab_0         183 KB  conda-forgerdkit-2023.09.2            |   py39h4e49fef_0        34.6 MB  conda-forgereportlab-4.0.7            |   py39ha55989b_0         2.2 MB  conda-forgerlpycairo-0.2.0            |     pyhd8ed1ab_0          15 KB  conda-forgesix-1.16.0                 |     pyh6c4a22f_0          14 KB  conda-forgesqlalchemy-2.0.23          |   py39ha55989b_0         2.6 MB  conda-forgetyping-extensions-4.8.0    |       hd8ed1ab_0          10 KB  conda-forgetyping_extensions-4.8.0    |     pyha770c72_0          34 KB  conda-forgeunicodedata2-15.1.0        |   py39ha55989b_0         365 KB  conda-forgexorg-libxau-1.0.11         |       hcd874cb_0          50 KB  conda-forgexorg-libxdmcp-1.1.3        |       hcd874cb_0          66 KB  conda-forgezipp-3.17.0                |     pyhd8ed1ab_0          19 KB  conda-forgezlib-1.2.13                |       hcfcfb64_5         105 KB  conda-forgezstd-1.5.5                 |       h12be248_0         335 KB  conda-forge------------------------------------------------------------Total:       141.8 MBThe following NEW packages will be INSTALLED:brotli             conda-forge/win-64::brotli-1.1.0-hcfcfb64_1 brotli-bin         conda-forge/win-64::brotli-bin-1.1.0-hcfcfb64_1 cairo              conda-forge/win-64::cairo-1.18.0-h1fef639_0 certifi            conda-forge/noarch::certifi-2023.7.22-pyhd8ed1ab_0 contourpy          conda-forge/win-64::contourpy-1.2.0-py39h1f6ef14_0 cycler             conda-forge/noarch::cycler-0.12.1-pyhd8ed1ab_0 expat              conda-forge/win-64::expat-2.5.0-h63175ca_1 font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0 font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0 font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0 font-ttf-ubuntu    conda-forge/noarch::font-ttf-ubuntu-0.83-hab24e00_0 fontconfig         conda-forge/win-64::fontconfig-2.14.2-hbde0cde_0 fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0 fonts-conda-forge  conda-forge/noarch::fonts-conda-forge-1-0 fonttools          conda-forge/win-64::fonttools-4.44.0-py39ha55989b_0 freetype           conda-forge/win-64::freetype-2.12.1-hdaf720e_2 freetype-py        conda-forge/noarch::freetype-py-2.3.0-pyhd8ed1ab_0 gettext            conda-forge/win-64::gettext-0.21.1-h5728263_0 greenlet           conda-forge/win-64::greenlet-3.0.1-py39h99910a6_0 icu                conda-forge/win-64::icu-73.2-h63175ca_0 importlib-resourc~ conda-forge/noarch::importlib-resources-6.1.1-pyhd8ed1ab_0 importlib_resourc~ conda-forge/noarch::importlib_resources-6.1.1-pyhd8ed1ab_0 kiwisolver         conda-forge/win-64::kiwisolver-1.4.5-py39h1f6ef14_1 lcms2              conda-forge/win-64::lcms2-2.15-h67d730c_3 lerc               conda-forge/win-64::lerc-4.0.0-h63175ca_0 libboost           conda-forge/win-64::libboost-1.82.0-h65993cd_6 libboost-python    conda-forge/win-64::libboost-python-1.82.0-py39h5c3ab46_6 libbrotlicommon    conda-forge/win-64::libbrotlicommon-1.1.0-hcfcfb64_1 libbrotlidec       conda-forge/win-64::libbrotlidec-1.1.0-hcfcfb64_1 libbrotlienc       conda-forge/win-64::libbrotlienc-1.1.0-hcfcfb64_1 libdeflate         conda-forge/win-64::libdeflate-1.19-hcfcfb64_0 libexpat           conda-forge/win-64::libexpat-2.5.0-h63175ca_1 libglib            conda-forge/win-64::libglib-2.78.1-he8f3873_0 libjpeg-turbo      conda-forge/win-64::libjpeg-turbo-3.0.0-hcfcfb64_1 libpng             conda-forge/win-64::libpng-1.6.39-h19919ed_0 libtiff            conda-forge/win-64::libtiff-4.6.0-h6e2ebb7_2 libwebp-base       conda-forge/win-64::libwebp-base-1.3.2-hcfcfb64_0 libxcb             conda-forge/win-64::libxcb-1.15-hcd874cb_0 m2w64-gcc-libgfor~ conda-forge/win-64::m2w64-gcc-libgfortran-5.3.0-6 m2w64-gcc-libs     conda-forge/win-64::m2w64-gcc-libs-5.3.0-7 m2w64-gcc-libs-co~ conda-forge/win-64::m2w64-gcc-libs-core-5.3.0-7 m2w64-gmp          conda-forge/win-64::m2w64-gmp-6.1.0-2 m2w64-libwinpthre~ conda-forge/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2 matplotlib-base    conda-forge/win-64::matplotlib-base-3.8.1-py39hf19769e_0 msys2-conda-epoch  conda-forge/win-64::msys2-conda-epoch-20160418-1 munkres            conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d_0 openjpeg           conda-forge/win-64::openjpeg-2.5.0-h3d672ee_3 packaging          conda-forge/noarch::packaging-23.2-pyhd8ed1ab_0 pandas             conda-forge/win-64::pandas-2.1.3-py39h32e6231_0 pcre2              conda-forge/win-64::pcre2-10.40-h17e33f8_0 pillow             conda-forge/win-64::pillow-10.1.0-py39h368b509_0 pixman             conda-forge/win-64::pixman-0.42.2-h63175ca_0 pthread-stubs      conda-forge/win-64::pthread-stubs-0.4-hcd874cb_1001 pycairo            conda-forge/win-64::pycairo-1.25.1-py39h82915f6_0 pyparsing          conda-forge/noarch::pyparsing-3.1.1-pyhd8ed1ab_0 python-dateutil    conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0 python-tzdata      conda-forge/noarch::python-tzdata-2023.3-pyhd8ed1ab_0 pytz               conda-forge/noarch::pytz-2023.3.post1-pyhd8ed1ab_0 rdkit              conda-forge/win-64::rdkit-2023.09.2-py39h4e49fef_0 reportlab          conda-forge/win-64::reportlab-4.0.7-py39ha55989b_0 rlpycairo          conda-forge/noarch::rlpycairo-0.2.0-pyhd8ed1ab_0 six                conda-forge/noarch::six-1.16.0-pyh6c4a22f_0 sqlalchemy         conda-forge/win-64::sqlalchemy-2.0.23-py39ha55989b_0 typing-extensions  conda-forge/noarch::typing-extensions-4.8.0-hd8ed1ab_0 typing_extensions  conda-forge/noarch::typing_extensions-4.8.0-pyha770c72_0 unicodedata2       conda-forge/win-64::unicodedata2-15.1.0-py39ha55989b_0 xorg-libxau        conda-forge/win-64::xorg-libxau-1.0.11-hcd874cb_0 xorg-libxdmcp      conda-forge/win-64::xorg-libxdmcp-1.1.3-hcd874cb_0 zipp               conda-forge/noarch::zipp-3.17.0-pyhd8ed1ab_0 zlib               conda-forge/win-64::zlib-1.2.13-hcfcfb64_5 zstd               conda-forge/win-64::zstd-1.5.5-h12be248_0 Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/179829.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

内网穿透工具NPS(保姆级教程)

前言&#xff1a; 有时候我们受限于硬件设备和网络的的问题&#xff0c;无法将内网的大容量、高性能存储设备或计算设备对外访问。这个时候就会变的特别苦恼&#xff0c;上云呢成本太大&#xff0c;不用云呢公网又无法直接访问&#xff0c;这个时候怎么办呢&#xff0c;NPS它来…

个人微信机器人接口

请求URL&#xff1a; http://域名地址/modifyGroupName 请求方式&#xff1a; POST 请求头Headers&#xff1a; Content-Type&#xff1a;application/jsonAuthorization&#xff1a;login接口返回 参数&#xff1a; 参数名必选类型说明wId是String登录实例标识chatRoom…

蓝桥杯每日一题2023.11.15

题目描述 此处的快速排序有一个思想&#xff1a;以一个数x来判定这l至r区间的数的大小&#xff0c;如果a[l]小于x就与右侧的a[r]交换&#xff0c;最后x可以将这个区间的数进行一分为二。填空出就是已经将x移动到左部分和右部分之间&#xff0c;来确定二分的一个界点 答案&…

vue+springboot实现图形验证码Kaptcha

1、前端 form使用了element-ui的组件&#xff0c;主要还是看img标签&#xff0c;src绑定了form.imgCodeUrl数据&#xff0c;点击图片时触发refreshCode更新图片验证码。 <el-form-item prop"verificationCode" label"验证码" style"text-align: l…

DNS服务器典型配置

文章目录 安装主程序bind和安全插件bind-root修改主配置文件/etc/named.conf正向解析 安装主程序bind和安全插件bind-root yum install bind-chroot修改主配置文件/etc/named.conf vim /etc/named.conf将listen-on和allow-query的ip或域名换成any 表示为服务器所有的IP地址启…

为开发GPT-5,OpenAI向微软寻求新融资

11月14日&#xff0c;金融时报消息&#xff0c;OpenAI正在向微软寻求新一轮融资&#xff0c;用于开发超级智能向AGI&#xff08;通用人工智能&#xff09;迈进&#xff0c;包括最新模型GPT-5。 最近&#xff0c;OpenAI召开了首届开发者大会&#xff0c;推出了GPT-4 Turbo、自定…

一本了解生成式人工智能

上周&#xff0c;发了一篇关于大语言模型图数据库技术相结合的文章&#xff0c;引起了很多朋友的兴趣。当然了&#xff0c;这项技术本身就让俺们很兴奋&#xff0c;比如我就是从事图研发的&#xff0c;当然会非常关注它在图领域的应用与相互促就啦。 纵观人类文明历史&#xff…

vmware安装MacOS以及flutter遇到的问题

安装过程&#xff1a;参考下面的文章 链接&#xff1a; 虚拟机VMware安装苹果系统macOS&#xff0c;超级详细教程&#xff0c;附文件下载&#xff0c;真教程&#xff01;&#xff01; 无限重启情况&#xff1a; &#xff08;二&#xff09; 配置虚拟机找到你的虚拟机安装文件…

使用群晖虚拟机快速搭建黑群晖并在公网移动端环境下使用软件

文章目录 前言本教程解决的问题是&#xff1a;按照本教程方法操作后&#xff0c;达到的效果是前排提醒&#xff1a; 1. 搭建群晖虚拟机1.1 下载黑群晖文件vmvare虚拟机安装包1.2 安装VMware虚拟机&#xff1a;1.3 解压黑群晖虚拟机文件1.4 虚拟机初始化1.5 没有搜索到黑群晖的解…

idea菜单栏任务栏放缩比例修改

在编辑自定义VM选项中增加 -Dide.ui.scale0.8 参数 Help -> Edit Custom VM Options

ROS 学习应用篇(五)服务Server学习之自定义服务与调用

在之前我学着如何建立一个话题Topic的消息类型&#xff0c;那时候建立了一个msg文件&#xff0c;包括&#xff0c;消息名称和消息数据类型&#xff08;int还是什么之类的。&#xff09;&#xff0c;将其链接到CMakeList&#xff0c;.xml文件补录需要的依赖&#xff0c;CMakeLis…

ruoyi若依前端请求接口超时,增加响应时长

问题&#xff1a; 前端查询请求超时 解决&#xff1a; 找到request.js的timeout属性由10秒改成了20秒&#xff0c;因为默认是10秒&#xff0c;请求肯定是超出了10秒 祝您万事顺心&#xff0c;没事点个赞呗&#xff0c;关注一下也行啊&#xff0c;有啥要求您评论哈