无法安装新的python模块[Ubuntu 15.10] [英] Can't install new python module [Ubuntu 15.10]

查看:85
本文介绍了无法安装新的python模块[Ubuntu 15.10]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ubuntu并不陌生,仍在尝试学习.

Im so new to ubuntu and still trying to learn it.

我已经成功安装了numpy,scipy等几个模块,因为可以通过easy_install或pip命令安装它们.但是我遇到了一个我不知道如何安装的模块.

I've installed several modules such as numpy, scipy without a problem because they can be installed via easy_install or pip commands. But I've faced a module which I don't know how to install it.

我要安装的模块是 https://github.com/breuleux/bugland

我尝试编辑bash_profile,bashrc和配置文件.像这样

I've tried editing bash_profile , bashrc and profile files. like this,

export PYTHONPATH="${PYTHONPATH}:/home/documents/bugland-master/bugland"

但这似乎也不起作用.

推荐答案

请按照以下步骤操作:

  • git clone https://github.com/breuleux/bugland.git
  • sudo mv bugland/bugland /usr/local/lib/python2.7/site-packages/(或python3)
  • git clone https://github.com/breuleux/bugland.git
  • sudo mv bugland/bugland /usr/local/lib/python2.7/site-packages/ (or python3)

然后您可以在python应用程序中导入所有模块

then you can import all modules in your python apps

from bugland import bug

这篇关于无法安装新的python模块[Ubuntu 15.10]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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