0

I have installed Python3.6.4 in a Linux machine, under a user directory, lets say /drive/username/Python3.6.4
I've setup my path and aliases, and Python is working properly (i.e. executing python3 puts me in the correct environment, which python3 produces: /drive/username/Python3.6.4/bin/python3)

The problem is with pip! When i execute pip3, i am getting:
-bash: /username/Python3.6.4/bin/pip3: /usr/local/bin/python3.6: bad interpreter: No such file or directory

the command which pip3 gives: /drive/username/Python3.6.4/bin/pip3

What am i missing?

1 Answer 1

1

On my PC:

$ cat /usr/bin/pip3.6 
#!/usr/bin/python
...

So, I think your pip has shebang like #!/usr/local/bin/python3.6.

Try rewrite or:

/drive/username/Python3.6.4/bin/python3 -m ensurepip

it will make correct pip in /drive/username/Python3.6.4/bin directory.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.