博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pycharm 的包路径设置export PYTHONPATH=$PYTHONPATH
阅读量:4514 次
发布时间: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

你可能感兴趣的文章
Python3 从零单排0_变量&格式化输出&流程控制&循环
查看>>
原生ajax与封装的ajax使用方法
查看>>
TCP协议的滑动窗口具体是怎样控制流量的
查看>>
VS插件
查看>>
Python之time模块
查看>>
Linux常用命令使用
查看>>
jmeter和postman小结
查看>>
JQuery 绑定事件时传递参数的实现方法
查看>>
nodejs直接调用grunt(非调用批处理)
查看>>
linux中vim常用的快捷键
查看>>
报表开发之批量导入导出excel
查看>>
HDOJ 2502月之数
查看>>
Mybatis基础-完整CRUD操作
查看>>
hadoop之 mapreduce example(2)
查看>>
3.2.2.频数分布
查看>>
Django图文混排
查看>>
No converter found for return value of type: class com.alibaba.fastjson.JSON解决办法
查看>>
苦酒入喉心作痛,红酒入鹅鹅想哭——震惊!勒索病毒想哭靠wine感染了Ubuntu16.04...
查看>>
VB内存操作类模块
查看>>
Python 2.7 与Python3的区别
查看>>