Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: coursera-dl: command not found on Ubuntu Linux 16.04 LTS #560

Closed
etsnyman opened this issue Jul 29, 2016 · 8 comments
Closed

Error: coursera-dl: command not found on Ubuntu Linux 16.04 LTS #560

etsnyman opened this issue Jul 29, 2016 · 8 comments

Comments

@etsnyman
Copy link

🚨Please review the Troubleshooting section
before reporting any issue. Don't forget to check also the current issues to
avoid duplicates.

Couldn't find anything that has anything to do with my problem.

Subject of the issue

I installed coursera-dl with the pip command, and when I try to run it, I get the error coursera-dl: command not found

I tried the pip3 way, and still nothing.

Your environment

  • Operating System (name/version): Ubuntu 16.04 64-bit
  • Python version: 2.7.12
  • coursera-dl version: Don't know, as I can't seem to install it.

Steps to reproduce

Tell us how to reproduce this issue, please don't forget to include
enough information so that you can help us help you: pip3 install coursera-dl

@balta2ar
Copy link
Member

Check your PATH and PYTHONPATH.

@etsnyman
Copy link
Author

I'm sorry, but I don't know what that means or how to do it :-(

On Fri, Jul 29, 2016 at 4:51 PM, Yuri Bochkarev notifications@github.com
wrote:

Check your PATH and PYTHONPATH.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#560 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHm6fvYneZ2g0saEzCrAzPJDpyIwySYAks5qahNqgaJpZM4JYEN7
.

@ubaldop
Copy link

ubaldop commented Aug 2, 2016

I had the same problem. Fixed by running the pip3 install command together with the flag --upgrade.

@pradhanshrijal
Copy link

I tried running the --upgrade flag, but its not working.

Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip_build_pradhanshrijal/coursera-dl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-m81i2tl3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_pradhanshrijal/coursera-dl

This is the error I get

I tried changing the python path with

$export PYTHONPATH=/usr/bin/python3

but when I execute $echo PYTHONPATH, it only outputs "PYTHONPATH"

I'm using Ubuntu14.04, 64 bit system

@gurjit03
Copy link

Facing same issue

@adamvoss
Copy link

adamvoss commented Feb 8, 2017

The error,

coursera-dl: command not found

says that either coursera-dl is not installed or that the location it was installed is not on PATH (the environment variable that indicates where to look for programs).

I am on a Ubuntu 16.04 derivative (Mint 18/18.1) and have never needed to manually configure path for pip-installed packages after installing pip with the package manger. Information about the particulars of your setup would be needed to troubleshoot this.

For example,

  • How did you [try to] install coursera-dl? What was the output?
  • How did you install pip?
  • What version of pip are you using?
  • What is your PATH?
  • Are you trying to install coursera-dl for python2 or python3?

@rbawaskar
Copy link

Check following directory
~/.local/bin/
Add above directory to PATH or use coursera-dl from there

@balta2ar
Copy link
Member

This thread has many valid suggestions to troubleshoot the problem, so I'm closing this issue. Feel free to comment if you're still having problems. But usually reports like this one indicate that there's something not right with the user's environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants