ImportError when using rpy2 with numpy.testing

ε祈祈猫儿з 提交于 2019-12-03 20:19:15

The solution was to

1) delete __pycache__ directory if a previous version was created

2) Install readline in anaconda in the command line: conda install -c asmeurer readline

3) Inside the .py file include import readline

another solution is to remove conda's readline from the environment and to use pip's one:

conda remove --force readline
pip install readline
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!