apt-get

How do I fix 'ImportError: cannot import name IncompleteRead'?

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to install anything with pip or pip3 , I get: $ sudo pip3 install python3-tk Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in

ubuntu 14.04, pip cannot upgrade matplotllib

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to upgrade my matplotlib using pip, it outputs: Downloading/unpacking matplotlib from https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745feac1a30b210940c Downloading matplotlib-1.4.0.tar.gz (51.2MB): 51.2MB downloaded Running setup.py (path:/tmp/pip_build_root/matplotlib/setup.py) egg_info for package matplotlib ============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.4.0] python: yes

mysql_config not found when installing mysqldb python interface

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to get a Python script to run on the linux server I'm connected to via ssh. The script uses mysqldb. I have all the other components I need, but when I try to install mySQLdb via setuptools like so:, python setup.py install I get the following error report related to the mysql_config command. sh: mysql_config: command not found Traceback (most recent call last): File "setup.py", line 15, in metadata, options = get_config() File "/usr/lib/python2.5/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config libs = mysql_config(

Can&#039;t build 32bit Wine on 64bit linux

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to do this: Build 32bit on 64 bit Linux using an automake configure script? Doesn't work for me :( Compileing wine. I found this in config.log: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "Wine" | #define PACKAGE_TARNAME "wine" | #define PACKAGE_VERSION "1.5.19" | #define PACKAGE_STRING "Wine 1.5.19" | #define PACKAGE_BUGREPORT "wine-devel@winehq.org" | #define PACKAGE_URL "http://www.winehq.org" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } Configuration fails with: Cannot build

How to install php-curl in Ubuntu 16.04

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Upgraded to Ubuntu 16.04 and facing problem after installing PHP5 . Installed PHP-5 with following: sudo add - apt - repository ppa : ondrej / php sudo apt - get update sudo apt - get upgrade sudo apt - get install php5 . 5 # for PHP 5.5 Trying to install php-curl but its not working. sudo apt - get install php5 - curl Error: E: Unable to locate package php5-curl 回答1: In Ubuntu 16.04 default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version: PHP 7.2: sudo apt-get

ImportError: No module named &#039;_sqlite3&#039; in python3.3

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: sqlite3 error import sqlite3 Traceback (most recent call last): File " ", line 1, in File "/usr/local/lib/python3.3/sqlite3/__init__.py", line 23, in from sqlite3.dbapi2 import * File "/usr/local/lib/python3.3/sqlite3/dbapi2.py", line 26, in from _sqlite3 import * ImportError: No module named '_sqlite3' i use sqlite3 install command pip install pysqlite Downloading/unpacking pysqlite Downloading pysqlite-2.6.3.tar.gz (76kB): 76kB downloaded Running setup.py egg_info for package pysqlite Traceback (most recent call last): File " ", line 16,

How to force Sphinx to use Python 3.x interpreter

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I try to create documentation for a project written with Python 3.x. Sphinx is the tool I want to use and, according to the official site , its last version 1.1.2 is compatible with Python 3.1+ . My OS is Archlinux, a Linux distribution which uses Python 3.2+ as the default Python package. The installation and configuration is straight forward ( easy_install -U Sphinx then sphinx-quickinstall ) and I was never asked to choose between the 2.x or 3.x Python interpreter. But when I ask Sphinx to create the documentation of my project,

Setting/Installing up OpenCV 2.4.6.1+ on Ubuntu 12.04.02

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I had previously used OpenCV 2.4.5 with some certain configs and packages on Ubuntu 12.04.1 but had issues upgrading to OpenCV 2.4.6.1 on Ubuntu 12.04.2 I would like to share some ideas (a compilation of noteworthy information gathered from several sources including SO, ubuntu.org, asklinux.org and many other; and of course by trying several procedures) Below is what eventually got me through. NOTE: ensure you uninstall any previous installation of OpenCV, FFMpeg and other dependencies previously installed. STEP 1 (install ffmpeg and

Composer install error - requires ext_curl when it&#039;s actually enabled

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to install Facebook PHP SDK with Composer. This is what I get $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for facebook/php-sdk dev-master -> satisfiable by facebook/php-sdk[dev-master]. - facebook/php-sdk dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem is, I have curl extension enabled

PostgreSQL error when trying to create an extension

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory Is what I get when I try to CREATE EXTENSION postgis; can anybody tell me why is it so and what can I do to fix it? 回答1: The following will get you a working postgis install on Ubuntu 12.04 (Note: also tested on 13.10) echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/postgis.list wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt