JavaShuo
栏目
标签
用shell调用python报ImportError
时间 2021-01-19
标签
踩坑汇总
python
shell
bug
栏目
Unix
繁體版
原文
原文链接
问题描述:python调用torch包,在ipython/ide/terminal直接运行都可以,shell调用python文件时报错ImportError 原因:shell找的解释器与python不是一个路径,应该是PYTHONPATH的问题。 但是用sys.path输出的path加进环境变量后,site-packages中的site.py文件有报错: 解决方法:把shell中写的python
>>阅读原文<<
相关文章
1.
Django 调用报错 " ImportError: Couldn't import Django. "
2.
用Python调用Shell命令
3.
python中调用 imread 报错: ImportError: cannot import name imread
4.
python调用shell命令
5.
shell调用python函数
6.
python 调用shell hive sql
7.
python调用shell脚本常用方法
8.
python 调用shell命令三种方法
9.
python 爬虫:使用shell调试
10.
Python下调用Linux的Shell命令
更多相关文章...
•
Scala 函数传名调用(call-by-name)
-
Scala教程
•
SQLite - Python
-
SQLite教程
•
Composer 安装与使用
•
使用Rxjava计算圆周率
相关标签/搜索
调用
importerror
用用
shell使用
递归调用
接口调用
调用原理
调试使用
系统调用
使用报告
Python
Unix
Spring教程
MySQL教程
Docker教程
应用
调度
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
[最佳实践]了解 Eolinker 如何助力远程办公
2.
katalon studio 安装教程
3.
精通hibernate(harness hibernate oreilly)中的一个”错误“
4.
ECharts立体圆柱型
5.
零拷贝总结
6.
6 传输层
7.
Github协作图想
8.
Cannot load 32-bit SWT libraries on 64-bit JVM
9.
IntelliJ IDEA 找其历史版本
10.
Unity3D(二)游戏对象及组件
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Django 调用报错 " ImportError: Couldn't import Django. "
2.
用Python调用Shell命令
3.
python中调用 imread 报错: ImportError: cannot import name imread
4.
python调用shell命令
5.
shell调用python函数
6.
python 调用shell hive sql
7.
python调用shell脚本常用方法
8.
python 调用shell命令三种方法
9.
python 爬虫:使用shell调试
10.
Python下调用Linux的Shell命令
>>更多相关文章<<