GVKun编程网logo

出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beauti...

15

关于出现问题:Command"pythonsetup.pyegg_info"failedwitherrorcode1,当进行pip3installbeauti...的问题就给大家分享到这里,感谢你花时

关于出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beauti...的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于 error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败、Android 出现问题Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER解决办法、centos install scipy 问题:File "scipy/linalg/setup.py", line 20, in configuration raise NotFoundE、centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check等相关知识的信息别忘了在本站进行查找喔。

本文目录一览:

出现问题:Command

出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beauti...

C:\Users\wang>pip3 install beautifulsoup
Collecting beautifulsoup
  Using cached BeautifulSoup-3.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\wang\AppData\Local\Temp\pip-build-3s2h_rej\beautifulsoup\se
tup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: Missing parentheses in call to ''print''. Did you mean print(int
"Unit tests have failed!")?

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\wang\App
Data\Local\Temp\pip-build-3s2h_rej\beautifulsoup\

beautifulsoup中的内容支持python2,不支持python3。 
解决方案:安装beautifulsoup4

C:\Users\wang>pip install bs4

 

  error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败

error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败

    copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-2.7/sasl
    running build_ext
    building ''sasl.saslwrapper'' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/sasl
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isasl -I/root/anaconda2/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.7/sasl/saslwrapper.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    In file included from sasl/saslwrapper.cpp:254:0:
    sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory
     #include <sasl/sasl.h>
                           ^
    compilation terminated.
    error: command ''gcc'' failed with exit status 1
    
    ----------------------------------------
Command "/root/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__=''/tmp/pip-build-DLlXxp/sasl/setup.py'';f=getattr(tokenize, ''open'', open)(__file__);code=f.read().replace(''\r\n'', ''\n'');f.close();exec(compile(code, __file__, ''exec''))" install --record /tmp/pip-n5E30n-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-DLlXxp/sasl/
 

Android 出现问题Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER解决办法

Android 出现问题Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER解决办法

Android 出现问题Installation error: INSTALL_Failed_CONFLICTING_PROVIDER解决办法

               最近做项目遇到 Installation error: INSTALL_Failed_CONFLICTING_PROVIDER这个报错信息,不知该如何解决,百度一下,发现有朋友同样问题并解决,这里记录下,有兴趣的朋友可以看下,

Installation error: INSTALL_Failed_CONFLICTING_PROVIDER 

[2014-04-20 20:43:26 - Army 4-14-1] Installation error: INSTALL_Failed_CONFLICTING_PROVIDER
[2014-04-20 20:43:26 - Army 4-14-1] Please check logcat output for more details.
[2014-04-20 20:43:26 - Army 4-14-1] Launch canceled!

居然遇到这个错误了,google被和谐后。上网百度了一下,如下解决方法:

仅供参考

这主要是由于调试的环境中已有一个同名的Provider存在。

解决方法是修改AndroidManifest.xml中的

<provider android:name="applockProvider" 
      android:authorities="com.smark.provider.SQ03"> 
    </provider>

即将android:authorities的值修改为别的就可以了。

2.自己回去一看,anroidmanifest.xml里面把 android:name authorities里面的写错了,

[2014-04-20 20:43:26 - Army 4-14-1] Installation error: INSTALL_Failed_CONFLICTING_PROVIDER
[2014-04-20 20:43:26 - Army 4-14-1] Please check logcat output for more details.
[2014-04-20 20:43:26 - Army 4-14-1] Launch canceled!

很显然,发生一个错误:INSTALL_Failed_UPDATE_INCOMPATIBLE

google...

找到原因:出现了问题,跟以前用的provider发生了冲突。。修改过来后就好了。

<provider
     android:authorities="cn.marsXTU.appprovider"
 android:name="cn.marsXTU.provider.AppProvider" >
 </provider>

[2014-04-20 20:46:41 - Army 4-14-1] ------------------------------
[2014-04-20 20:46:41 - Army 4-14-1] Android Launch!
[2014-04-20 20:46:41 - Army 4-14-1] adb is running normally.
[2014-04-20 20:46:41 - Army 4-14-1] Performing cn.marsXTU.ui.SplashActivity activity launch
[2014-04-20 20:46:41 - Army 4-14-1] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD '520'
[2014-04-20 20:46:41 - Army 4-14-1] Uploading Army 4-14-1.apk onto device 'emulator-5554'
[2014-04-20 20:47:07 - Army 4-14-1] Installing Army 4-14-1.apk...
[2014-04-20 20:47:21 - Army 4-14-1] Success!
[2014-04-20 20:47:21 - Army 4-14-1] Starting activity cn.marsXTU.ui.SplashActivity on device emulator-5554
[2014-04-20 20:47:25 - Army 4-14-1] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=


[android.intent.category.LAUNCHER] cmp=cn.marsXTU/.ui.SplashActivity }

在反复安装android apk的时候,有的时候可能会遇到adb install错误,内容是:

Failure[INSTALL_Failed_UPDATE_INCOMPATIBLE]

这很可能是因为你在以前uninstall应用的时候,没有做彻底,只是简单的rm /data/app/下面的apk文件了,一个补救的办法如下:

启动模拟器,然后进入菜单

settings->applications->mange
applications-> select the application->select "unistall".

这样就能彻底删除了,然后再重新安装这个apk就没问题了

另外一个办法就是将/data/system/packages.xml中该应用相应的信息删掉,重启模拟器再安装即可,因为adb install后,会在packages.xml中添加

相应的程序信息。

卸载方式有如下几种:

1)优雅式:通过界面 settings-->applications-->manage applications-->找到应用-->application Info-->uninstall 就可以正常卸载应用了。

2)粗暴式  直接到/data/app目录下删除apk

adb shell


cd /data/app
rm xxx.apk

不推荐这种方式,只删除了apk,如果应用还有其他的目录,如数据库目录/data/data/xxx/databases/并没有清理干净,留有隐患。

3)隐藏式:

adb uninstall package-name (这个在adb的帮助文档中没有说明,但可以用)

什么,不知道package-name?看看你的AndroidManifest.xml中有个必须的属性就是package,它所指定的就是package-name。

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

centos install scipy 问题:File

centos install scipy 问题:File "scipy/linalg/setup.py", line 20, in configuration raise NotFoundE

依赖包: pyparsing、dateutil、scipy、numpy、libpng 1.2 (or later)、`freetype` 1.4 (or later) 安装pyparsing: # pip install pyparsing 安装numpy: # pip install numpy 安装dateutil: # pip install python-dateutil 安装scipy: # pip install scipy 待测:sudo yum -y install gcc gcc-c++ numpy python-devel scipy(不过这些包都装好了) 报错: # pip install scipy Downloading/unpacking scipy Downloading scipy-0.17.1.tar.gz (12.4MB): 81kB downloaded Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py",line 139,in main status = self.run(options,args) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py",line 266,in run requirement_set.prepare_files(finder,force_root_egg_info=self.bundle,bundle=self.bundle) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",line 1033,in prepare_files self.unpack_url(url,location,self.is_download) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",line 1161,in unpack_url retval = unpack_http_url(link,self.download_cache,self.download_dir) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/download.py",line 554,in unpack_http_url download_hash = _download_url(resp,link,temp_location) File "/usr/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/download.py",line 458,in _download_url chunk = resp.read(4096) File "/usr/local/lib/python2.7/socket.py",line 380,in read data = self._sock.recv(left) File "/usr/local/lib/python2.7/httplib.py",line 567,in read s = self.fp.read(amt) File "/usr/local/lib/python2.7/socket.py",in read data = self._sock.recv(left) File "/usr/local/lib/python2.7/ssl.py",line 246,in recv return self.read(buflen) File "/usr/local/lib/python2.7/ssl.py",line 165,in read return self._sslobj.read(len) SSLError: The read operation timed out Storing complete log in /root/.pip/pip.log 解决方法: # pip --default-timeout=100 install django 重新安装scipy 各个安装包版本: nose-1.3.1 lapack-3.5.0 atlas-3.10.1 scipy-0.11.0 numpy-1.6.2 依赖关系:scipy的安装需要依赖于numpy、lapack、atlas(后两者都是线性代数工具包,不清楚的自行google),而numpy和sci的测试程序的运行又依赖于nose,因此,整个安装过程必须要按顺序执行的,否则是无法执行下去的。 安装nose: # pip install nose 安装lapack: #yum install lapack lapack-devel blas blas-devel 更新pip # pip install --upgrade pip 安装scipy: # pip install scipy 安装matplotlib: # pip install matplotlib 报错: 安装freetype: 依赖freetype-devel # yum install freetype-devel # yum install freetype 安装matplotlib: # cd matplotlib-1.5.1 # python setup.py install 测试: 参考:http://paperman825.blog.chinaunix.NET/uid-25691489-id-5602653.html

centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check

centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check

报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

在这里插入图片描述

  • 解决方案
    ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
    
  • 还是报错
    yum install mysql-devel
    

今天关于出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beauti...的分享就到这里,希望大家有所收获,若想了解更多关于 error: command ''gcc'' failed with exit status 1 ,python 安装 pyhs2 失败、Android 出现问题Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER解决办法、centos install scipy 问题:File "scipy/linalg/setup.py", line 20, in configuration raise NotFoundE、centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check等相关知识,可以在本站进行查询。

本文标签: