博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pycharm 的包路径设置export PYTHONPATH=$PYTHONPATH
阅读量:4511 次
发布时间:2019-06-08

本文共 754 字,大约阅读时间需要 2 分钟。

我们使用pycharm的时候,经常会因为要链接(import)其他自己写的包,因此在pycharm的时候经常会

报错,就是找不到自己的包,在命令行下常用,export PYTHONPATH=$PYTHONPATH来临时链接。

因此,这里有一个网上的参考,蛮不错的:

来源于:https://stackoverflow.com/questions/17198319/how-to-configure-custom-pythonpath-with-vm-and-pycharm

 

 


52

For PyCharm 5 (or 2016.1), you can:

  1. select Preferences > Project Interpreter
  2. to the right of interpreter selector there is a "..." button, click it
  3. select "more..."
  4. pop up a new "Project Interpreters" window
  5. select the rightest button (named "show paths for the selected interpreter")
  6. pop up a "Interpreter Paths" window
  7. click the "+" buttom > select your desired PYTHONPATH directory (the folder which contains python modules) and click OK
  8. Done! Enjoy it!

 

转载于:https://www.cnblogs.com/YouXiangLiThon/p/7550403.html

你可能感兴趣的文章
CentOS 6.4 编译安装 PHP5.6
查看>>
最大前驱路径
查看>>
Linq语句简单应用
查看>>
ubuntu 12.04 lts安装golang并设置vim语法高亮
查看>>
编程题目:PAT 1004. 成绩排名 (20)
查看>>
使用分层实现业务处理
查看>>
用链表实现消息队列
查看>>
CLRS10.1-7练习 - 用双队列实现栈
查看>>
Microsoft Windows平台的NoSQL数据存储引擎
查看>>
json 后台传数据
查看>>
Hibernate核心接口和工作原理
查看>>
【JS】学习18天Jquery Moblie的总结笔记。
查看>>
浅谈虚拟机
查看>>
Ubuntu系统Linux编译osg库
查看>>
error MSB8008: 指定的平台工具集(v120)未安装或无效 解决办法
查看>>
5.2 面向对象上
查看>>
JSP 总结
查看>>
Host is not allowed to connect to this MySQL server 解决方案
查看>>
JS 数据类型分析及字符串的方法
查看>>
ASP.Net Core 2.2 MVC入门到基本使用系列 (一)
查看>>