How do you set the python path?

In pycharm.

I have a project with 2 content roots, if I import form one to the other and run a script I get a ImportError: No module named.

I had this problem with the plugin as well, I set up two modules and had one depend on the other and I still got a ImportError.

0
5 comments

Sorry if my question was rude,

Could someone please help me. I love Intellij I use it for Java, it is the best IDE for Java. But I am now working on Python and have to use eclipse because it is the only IDE for python that seem to support multiple projects (well at least the plug-in for it does).

The code I work with is made up of lots of separate projects that all depend on each other. To run one it needs to find the others. When I add project that ref's another the intellisense works and finds all the references but it I try to imports some thing it reports that it can't find it.

So it knows its there but it won't import it, and I can't run it.

So if some can help me and save from having to use cruddy eclipse I would be very grateful.

Lewis.

0

Hello Lewis,

Right now there is no feature for automatically building PYTHONPATH when

you have multiple modules with dependencies. However, you can configure it

manually. In the "Run/Debug Configurations" dialog, you can select your run

configuration, click on the ... button next to the "Environment Variables",

click on "Add" button in the dialog that appears, and enter the desired value

of the PYTHONPATH.

Sorry if my question was rude,

Could someone please help me. I love Intellij I use it for Java, it is

the best IDE for Java. But I am now working on Python and have to use

eclipse because it is the only IDE for python that seem to support

multiple projects (well at least the plug-in for it does).

The code I work with is made up of lots of separate projects that all

depend on each other. To run one it needs to find the others. When I

add project that ref's another the intellisense works and finds all

the references but it I try to imports some thing it reports that it

can't find it.

So it knows its there but it won't import it, and I can't run it.

So if some can help me and save from having to use cruddy eclipse I

would be very grateful.

Lewis.

---

Original message URL:

http://www.jetbrains.net/devnet/message/5256026#5256026

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Thank you very much for your reply. Hopeful it won't be long before this is implemented.

0

Related need: I'd like to set the Pythonpath to let PyCharm know where the Django support is (it is not in the default location), but there doesn't seem to be a mechanism for setting it before you try to create a Django project.

0

http://www.fmtweld.com/product/detail-20159.html

http://www.tptz.net.cn/ http://www.gjsw120.com/ http://www.gjsw120.com/jrsyzl.html http://www.gjsw120.com/jrsyzl.html http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.pana-vision.com/ http://www.pana-vision.com/ http://www.fmtweld.com/ http://www.fmtweld.com/product/detail-20208.html http://www.hcx.cn/http://www.hcx.cn/ http://www.hcx.cn/ http://www.hcx.cn/xgxqgj.html http://www.hcx.cn/xgxqgj.html http://www.hcx.cn/xgx.html http://www.hypercut.com.cn/ http://www.hypercut.com.cn/http://www.hypercut.com.cn/http://www.hypercut.com.cn/http://www.pana-vision.com/about/channel/default.shtmlhttp://www.pana-vision.com/http://www.fmtweld.com/http://www.hypercnc.cn/http://www.hypercnc.cn/athena/offerlist/hypercnc-sale-1-true-953438.htmlhttp://www.hypercnc.cn/athena/offerlist/hypercnc-sale-1-true-953438.html http://www.gjsw120.com/pztp.html http://www.gjsw120.com/1.htm http://www.gjsw120.com/1.htm http://www.gjsw120.com/1.htm http://www.gjsw120.com/1.htm http://www.gjsw120.com/1.htm http://www.gjsw120.com/1.htm http://www.gjsw120.com/2.htm http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.gjsw120.com/ http://www.gjsw120.com/6.htm  http://www.gjsw120.com/pz.asp.html http://www.gjsw120.com/pz.asp.html http://www.gjsw120.com/pz.asp.html http://www.gjsw120.com/pz.asp.html  http://www.gjsw120.com/jr/1.htm http://www.gjsw120.com/jr/1.htm http://www.gjsw120.com/jr/1.htmhttp://www.gjsw120.com/jr/1.htm http://www.gjsw120.com/jr/1.htmhttp://www.gjsw120.com/jr/1.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/jr/6.htm http://www.gjsw120.com/sytp.html http://www.gjsw120.com/jr/9.htmhttp://www.gjsw120.com/sytp.html http://www.shinvoice.com/index.asp http://www.glassmarble.cn/temperedglass.htmlhttp://www.glassmarble.cn/laminatedglass.htmlhttp://www.glassmarble.cn/insulatedglass.htmlhttp://www.glassmarble.cn/marblecompositeslab.htmlhttp://www.zjmhjx.com/en/company.asphttp://www.zjmhjx.com/en/company.asphttp://www.zjmhjx.com/en/company.asphttp://www.zjmhjx.com/en/company.asphttp://www.zjsfg.net our http://www.christianlouboutinlive.com/ supply http://www.christianlouboutinlive.com/ is http://www.christianlouboutinlive.com/ or http://www.christianlouboutinlive.com/ are u fine http://www.christianlouboutinlive.com/autumn-collection-c-5.html or http://www.christianlouboutinlive.com/classic-collection-c-7.htmlsome http://www.christianlouboutinlive.com/christian-louboutin-satin-anemone-pumps-in-black-p-343.html http://www.christianlouboutinlive.com/pumps-c-2.htmljust for http://www.christianlouboutinlive.com/pumps-c-2.html and http://www.christianlouboutinlive.com/pumps-c-2.html.we also heave http://www.christianlouboutinlive.com/pumps-c-2.html and http://www.christianlouboutinlive.com/pumps-c-2.htmlour product as follows :http://www.christianlouboutinlive.com/sandals-c-1.html|http://www.christianlouboutinlive.com/sandals-c-1.html|http://www.christianlouboutinlive.com/sandals-c-1.html|http://www.christianlouboutinlive.com/sandals-c-1.html|http://www.christianlouboutinlive.com/short-boots-c-3.html|http://www.christianlouboutinlive.com/short-boots-c-3.html|http://www.christianlouboutinlive.com/specials-c-8.html|http://www.christianlouboutinlive.com/tall-boots-c-4.html|http://www.christianlouboutinlive.com/tall-boots-c-4.html|http://www.christianlouboutinlive.com/tall-boots-c-4.html |http://www.christianlouboutinlive.com/tall-boots-c-4.html some  http://www.luckshoping.com/ supply http://www.luckshoping.com/ or http://www.luckshoping.com/ and  http://www.luckshoping.com/ are u fine http://www.luckshoping.com/autumn-collection-c-5.html or http://www.luckshoping.com/classic-collection-c-7.htmlsome http://www.luckshoping.com/christian-louboutin-satin-anemone-pumps-in-black-p-343.html http://www.luckshoping.com/pumps-c-2.htmljust for http://www.luckshoping.com/pumps-c-2.html and http://www.luckshoping.com/pumps-c-2.html.we also heave http://www.luckshoping.com/pumps-c-2.html and http://www.luckshoping.com/pumps-c-2.htmlour product as follows :http://www.luckshoping.com/sandals-c-1.html|http://www.luckshoping.com/sandals-c-1.html|http://www.luckshoping.com/sandals-c-1.html|http://www.luckshoping.com/sandals-c-1.html|http://www.luckshoping.com/short-boots-c-3.html|http://www.luckshoping.com/short-boots-c-3.html|http://www.luckshoping.com/specials-c-8.html|http://www.luckshoping.com/tall-boots-c-4.html|http://www.luckshoping.com/tall-boots-c-4.html|http://www.luckshoping.com/tall-boots-c-4.html |http://www.luckshoping.com/tall-boots-c-4.html

---

Original message URL: http://www.jetbrains.net/devnet/message/5256735#5256735

-2

Please sign in to leave a comment.