即使已安装wget,也无法将其识别为命令 [英] wget is not recognized as a command even though it is installed

查看:63
本文介绍了即使已安装wget,也无法将其识别为命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我在这里做的事情确实很愚蠢,但是我已经尝试了我能想到的事情.

I know I am doing something really stupid here but I have tried the things I can think of.

这是我会议的相关部分:

Here is the relevant portion of my session:

$ wget http://pjmedia.com/instapundit/
-bash: wget: command not found
$ cd ..
$ pip install wget
Requirement already satisfied (use --upgrade to upgrade): wget in
    ./anaconda/lib/python2.7/site-packages
$ 

我已经重新启动计算机,但没有帮助.我正在使用已安装El Capitan系统的Mac OXX.这与PATH变量有关吗?我在互联网上发现了一些与Windows系统上另一个程序的问题类似的问题,但是对于Mac OS却什么也没找到.我尝试从根目录安装它,但系统不允许pip安装它,因为它已经安装.谁能指出我正确的方向?

I have restarted my computer and that does not help. I am using Mac OX X with the El Capitan system installed. Does this have something to do with the PATH variable? I found something on the internet that seemed similar to my problem with another program on the Windows system, but I have found nothing for the Mac OS. I tried installing it from my root directory but the system won't let pip install it because it is already installed. Can anyone point me in the right direction?

我要感谢马克斯,比尔和肯诺布.与过去一周在一些商业网站上获得的免费信息相比,我在10分钟内免费获得的信息更多.有什么方法可以将我的问题标记为已回答,这样人们就不必浪费时间阅读我的问题了?

I would like to thank Max, Bill and kenorb. I have learned more here for free in 10 minutes than I have in a week at some commercial sites. Is there some way to mark my question as answered so that people don't have to keep wasting their time reading my question?

推荐答案

使用某些OS X软件包管理器,例如 Homebrew ()或MacPorts,因为pip用于python模块:

Use some OS X package manager like Homebrew (brew) or MacPorts, as pip is used for python modules:

brew install wget

这篇关于即使已安装wget,也无法将其识别为命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆