简体   繁体   English

在没有终端的Mac OS X 10.6上安装matplotlib

[英]Installing matplotlib on Mac OS X 10.6 without terminal

For different reasons I cannot use admin in terminal. 由于不同的原因,我无法在终端中使用admin。 It is a way to install matplotlib on Mac OS X 10.6 without using terminal? 这是一种无需使用终端即可在Mac OS X 10.6上安装matplotlib的方法吗?

Installing anaconda or canopy python distributions is basically straight forward and don't require a lot of terminal action. 安装anaconda冠层 python发行版基本上很简单,不需要很多终端操作。

I don't have a mac so I'm not quite sure how it's done there but on win it's basically an .exe you run. 我没有Mac,所以我不太确定该怎么做,但是赢了基本上就是您运行的.exe。 For a taste of what you can expect: 品尝您可以期待的东西:

I use anaconda on win, default installation is python2.7 with about a ~100 more packages (including matplotlib). 我在win上使用anaconda,默认安装是python2.7,大约有100多个软件包(包括matplotlib)。 In conda you can configure additional environments (py2.6, py3.3, py3.4) and have them in parallel with the default 2.7 without a terminal as well. 在conda中,您可以配置其他环境(py2.6,py3.3,py3.4),并使它们与默认2.7并行(不带终端)。 However depending on your IDE you might or might not be able to use them. 但是,根据您的IDE,您可能会或可能无法使用它们。

Ie to use python2.7 and 3.4 interpreters, using microsoft visual studio as IDE, you need to set 2 different environmental variables (possible in win without terminal, don't know iOS). 即使用python2.7和3.4解释器,并使用Microsoft Visual Studio作为IDE,您需要设置2个不同的环境变量(可能在没有终端的情况下获胜,也不知道iOS)。 There's some minor set-up steps you need to do in IDE too, but non require terminal. 您也需要在IDE中执行一些较小的设置步骤,但不需要终端。

Conda comes with spyder IDE so it's possible, probably , to set up the same thing in there without terminal/console/prompt. 康达自带Spyder的IDE因此有可能, 大概 ,设置了同样的事情,在那里没有终端/主机/提示。

It is also possible to start anaconda graphical launcher and start IPython cosole and IPython notebook from there. 也可以启动anaconda图形启动器,然后从那里启动IPython cosole和IPython Notebook。 You can pick your environment there too, so you can start IPy with py3k or py2k. 您也可以在那里选择环境,因此可以使用py3k或py2k来启动IPy。 It's possible to configure additional environments from the graphical launcher too. 也可以从图形启动器配置其他环境。 Unfortunately the envs. 不幸的是环境。 you configure there will not have all the packages that the default distribution has installed. 您配置的文件将不会安装默认发行版的所有软件包。 In fact they'll just have the bare python interpreter. 实际上,他们只有裸露的python解释器。

If you don't mind using python2.7 you can get what you want. 如果您不介意使用python2.7,则可以得到想要的东西。 Second biggest issue I see with this is that you can't install additional packages, because they require you to use the terminal, activate the env. 我看到的第二大问题是您无法安装其他软件包,因为它们需要您使用终端才能激活环境。 you want to use ( source activate [env.name]) and then running conda install [package.name]`. 您要使用( source activate [env.name]) and then running conda install [package.name]`。

I think similar might be true for canopy (worth checking out though, personally I don't use it). 我认为类似的情况可能适用于树冠(不过值得一看,我个人不使用它)。

But in general the idea is that you'll create virtual envs, run source activate {env.name} and continue from there. 但总的来说,您的想法是创建虚拟环境,运行source activate {env.name}然后从那里继续。 Limiting yourself to actions without terminal spells out a lot of work to achieve even a limited number of options these distributions offer to you. 将自己限制在没有终端的情况下进行操作会花费很多工作,即使这些发行版提供给您的选择数量有限,也无法实现。

Do you mean by "cannot use admin in terminal", that you don't have root access, but can use terminal for ordinary user? 您的意思是“无法在终端中使用admin”,您没有root访问权限,但可以为普通用户使用终端? If so and assuming you have Python already installed, you can install modules not systewide, but only for single user (without root privileges) as described here . 如果是这样,并假设你已经安装了Python,您可以安装的模块不systewide,但仅限于单个用户(没有root权限)的描述在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM