Question: I'm trying to setup a server on Debian with Python 3.4.3 and pip.

I installed python 3.4.3 from source into the /opt directory (is that the right one to install to?). I exported the /bin to path with

```
export PATH="$PATH:/opt/python3.4.3/bin"

```

but when I close the ssh, it doesn't work when I log back in.

And there isn't a scripts folder... so where is pip?

Answer: 
Add the line in which you export the `PATH` variable to the .profile and it will work after logging back in.

You can do this by executing

```
echo 'export PATH="$PATH:/opt/python3.4.3/bin"' >> ~/.profile

```

Instead of changing the `PATH` variable, you could simply install python into the system directories (where it is better placed), by going to the root of the source directory and running

```
./configure
make
sudo make install

```

If pip is distributed within the python source, then it will be installed, too. Check if pip has been installed by executing

```
pip --version

```

If it is not, you have to manually install pip, too. 

<https://pip.pypa.io/en/latest/installing.html> explains how this is done.
Simply download the script `get-pip.py` and run it like this

```
sudo python get-pip.py

```
The thing is your export is only working for the session you are. When you logout and then login, a new session is created. Just put `export PATH="$PATH:/opt/python3.4.3/bin"` in your `~/.bashrc` or `~/.profile` and this will be executed everytime you login to a server.

And you can add the repositories for Debian testing and install python3.4 from there. This is what I have done in a Debian 7 server. 

And pip lives in the bin/ directory.