cannot import name 'multiarray' 问题的解决
2018-12-17 12:10
531 查看
@[ImportError: cannot import name ‘multiarray’ 问题的解决
在安装numpy之后在终端进行import时发现居然出错,ImportError: cannot import name ‘multiarray’
于是查询了多种博客,发现原来问题在于自己安装的python版本太多了,并未指定一个模块调用位置,我使用的是ubantu16.04,需要改动~/.bashrc,加上一句话:
export PYTHONPATH="/usr/local/lib/python3.6/dist-packages:$PYTHONPATH"
这样就会去找适用于python3.6版本的模块了,
此外,以后进行pip安装模块时还要注意要使用指令:sudo pip3.6 install *,这样会自动安装到该路径,以后无需设定了就。
相关文章推荐
- ImportError: cannot import name pinvh问题解决
- 小记:解决问题ImportError: cannot import name symbol_database
- ImportError: cannot import name ABCMeta 问题解决
- 解决ImportError:cannot import name xmlrpc_client问题
- Python2下ImportError: cannot import name 'urlopen'问题解决
- 解决问题:ImportError: cannot import name MAXREPEAT
- python脚本出错:ImportError: cannot import name 'namedtuple' from 'collections' 问题的解决方法
- 解决 ImportError: cannot import name imsave 的报错问题
- C++ 调用python3 ImportError: cannot import name 'multiarray'解决方法
- Java--"The import *** cannot be resolved"问题解决方案
- ImportError: cannot import name 'ctc_ops'解决办法
- [Django]ImportError:cannot import name debug问题
- 解决ImportError: cannot import name HTTPSHandler
- 关于不同python的兼容问题导致的ImportError: cannot import name 'xxxx'
- 使用sklearn时cannot import name MLPClassifier的解决办法
- cannot import name usrp解决方法
- 安装keras之后导入tensorflow报错 ImportError: cannot import name 'abs' 解决方法
- 解决bs4在Python 3.5下出现“ImportError: cannot import name 'HTMLParseError'”错误
- 解决ImportError: cannot import name webdriver
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法