-2

How do I add "/home/me/pycharm-edu-4.0/bin/" to my PATH environment variable? I've tried what's in How to set $PATH in Ubuntu and What is the PATH environment variable and how do I add to it? but I can't get it to work. What exactly should I change

PATH="$HOME/bin:$HOME/.local/bin:$PATH"

to? Or should I comment it out and add a line underneath? I appreciate any help.

3 Answers 3

2

You have to use something like:

PATH="$HOME/pycharm-edu-4.0/bin:$PATH"

or:

PATH="$PATH:$HOME/pycharm-edu-4.0/bin"

if you want a higher priority for default paths.

5
  • 2
    You left out the $HOME in your suggested paths.
    – ubfan1
    Aug 27, 2017 at 23:14
  • Should PATH="$HOME/bin:$HOME/.local/bin:$PATH be changed or must be keept?
    – pa4080
    Aug 27, 2017 at 23:22
  • 1
    @pa4080 keep it, add the new line at the end of file.
    – Ravexina
    Aug 27, 2017 at 23:24
  • I added quotes. Makes a difference if $HOME or $PATH includes space characters. Aug 28, 2017 at 0:12
  • 1
    I tried both lines but neither one worked. I ended up using this solution - confluence.jetbrains.com/display/PYH/… to create a link. Aug 28, 2017 at 4:05
1

1.Open a terminal from the bin directory of pycharm and type

./pycharm.sh

2.Go to Tools>>Create Desktop entry.Now you can just press the windows key and type pycharm to run it

1

Using fish, the other answers didn't work for me.

But this did:

set PATH $PATH /home/me/pycharm-edu-4.0/bin/
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .