简体   繁体   English

从Github到Anaconda安装侧面Python模块

[英]Install side Python module from Github to Anaconda

I'd like to install side module located on GitHub ( https://github.com/mokelly/wabbit_wappa ) 我想安装位于GitHub( https://github.com/mokelly/wabbit_wappa )上的侧模块

Could someone help me with conda commands useful for those purposes, please? 有人可以帮我用有用的conda命令吗?

conda install wabbit_wappa

is not working as there is no such package on the site. 无法使用,因为该网站上没有此类软件包。 I'm using Mac OS X. 我正在使用Mac OSX。

I think the package you are trying to use does not support Python 3, as indicated by the implicit relative import you got when you tried to install it (these are no longer supported in Python 3). 我认为您尝试使用的软件包不支持Python 3,正如您尝试安装该软件包时隐式相对导入所指示的那样(Python 3不再支持这些软件包 )。

You can create a Python 2 conda environment with 您可以使用以下命令创建Python 2 conda环境

conda create -n py2 python=2.7 anaconda pip

(you can replace anaconda with specific packages you want to install), and then (您可以将anaconda替换为要安装的特定软件包),然后

source activate py2

will activate it. 将激活它。 You can then 那你可以

pip install wabbit_wappa

当无法通过conda使用模块时,可以只使用pip install。

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

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