packages

RHEL7更换yum源

江枫思渺然 提交于 2019-12-04 04:00:18
1,删除注册和订阅提示 查找subscription-manager相关组件: rpm -qa | grep subscription-manager 删除subscription-maanager相关组件: sudo yum remove subscription-manager 查找rhn相关组件 rpm -qa | grep rhn 删除rhn相关组件: sudo yum remove rhn-check 2,yum 安装 查询当前RHEL7.0的yum安装包: rpm -qa |grep yum 强制删除当前yum: rpm -qa|grep yum|xargs rpm -e --nodeps 再次查询yum是否删除: rpm -qa |grep yum 3.解决wget无法解析DNS问题 解决方法: a.进入/etc/resolv.conf b.修改或增加内容: nameserver 8.8.8.8 4.下载所需的安装包 http://mirrors.163.com/centos/7/os/x86_64/Packages/ ctrl + f搜索需要的 安装包 yum-plugin-fastestmirror yum-updateonboot yum-utils yum-metadata-parser yum-3.4.3-163.el7.centos.noarch.rpm

When I do pip --version it show the error as ImportError: No module named pyparsing

醉酒当歌 提交于 2019-12-04 03:52:53
I tried installing/uninstalling pyparsing as well and it does not work. I am stuck with this and I have to install additional libraries as well. Here is the error message: Traceback (most recent call last): File "/usr/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/home/rachana/.local/lib/python2.7/site-packages/pkg_resour‌​ces/__init__.py", line 72, in <module> import packaging.requirements File "/home/rachana/.local/lib/python2.7/site-packages/packaging/‌​requirements.py", line 9, in <module> from pyparsing import stringStart, stringEnd, originalTextFor,

How do I move Delphi XE packages and settings to another user?

夙愿已清 提交于 2019-12-04 03:37:31
We have set up a new (template) development machine with among other things Delphi XE including a large number of third-party and internal packages, and intend to make a number of clones of this computer for the developers in our team. Note that we are not trying to bypass licensing, we (re-) activate/register Windows, Office, Delphi XE etc. after cloning. My problem is that when I am logged on (as myself) to the clone that will be my own machine, Delphi shows none of the packages we installed (i.e. on the the template machine, using a local Administrator account). Is there anyway I can find

Determine minimum R version for all package dependencies

僤鯓⒐⒋嵵緔 提交于 2019-12-04 03:24:25
问题 I am a package developer and want to state the minimum R version required to use my package in the DESCRIPTION file. available.packages parses DESCRIPTIONS of packages, but the result is not (easily) machine readable to lookup recursive dependencies, since the Imports and Depends fields are comma separated text, and sometimes contain packages have version requirements. The solution described in: Listing R Package Dependencies Without Installing Packages is not a recursive solution. If a

Best practices for developing a suite of dependent R packages

拟墨画扇 提交于 2019-12-04 01:59:43
问题 I am starting to work on a family of R packages, all of which share substantial common code which is housed in its own package, lets call it myPackageUtilities . So I have several packages myPackage1 , myPackage2 , etc... All of these packages depend on every method in myPackageUtilities . For a real-world example, please see statnet on CRAN. The idea is that a future developer might create myPackageN , and instead of having to re-write/duplicate all of the supporting code, this future

Define Classes in Packages

纵然是瞬间 提交于 2019-12-04 01:40:41
I'm learning Python and I have been playing around with packages. I wanted to know the best way to define classes in packages. It seems that the only way to define classes in a package is to define them in the __init__.py of that package. Coming from Java, I'd kind of like to define individual files for my classes. Is this a recommended practice? I'd like to have my directory look somewhat like this: recursor/ __init__.py RecursionException.py RecursionResult.py Recursor.py So I could refer to my classes as recursor.Recursor , recursor.RecursionException , and recursor.RecursionResult . Is

How to get the newly-installed version within a Debian postinst script?

流过昼夜 提交于 2019-12-04 01:17:18
Per the Debian Policy Manual , my postinst script is getting called at upgrade and configure time, as "postinst configure old-version ", where old-version is the previously installed version (possibly null). I want to determine new-version , i.e. the version that is currently being configured (upgraded to). The environment variable $DPKG_MAINTSCRIPT_PACKAGE contains the package name; there does not seem to be an equivalent _VERSION field. /var/lib/dpkg/status gets updated AFTER postinst runs, so I can't seem to parse it out of there, either. Any ideas? This is the best method I have found to

Automatically remove explicit package declarations with import statements in Java

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 23:25:27
问题 I have a project created by others that includes thousands of class files and has the package names explicitly typed out for every reference to any of their classes. It looks like the code was reverse engineered. Is there a good tool for Java that refactors the code so that the explicitly typed package prefixes are removed from class references and moved into import statements. Thank you in advance. EDIT: I think an example will help. I want to have the imports at the top, and I don't care

Python项目生成所有依赖包的清单

偶尔善良 提交于 2019-12-03 21:25:24
最近写完的自动化脚本,分享给同事的时候发现依赖包很难解决(使用的不是virtualenv环境)。想起来之前看开源接口平台项目的时候可以一键下载依赖包,于是就找到了第三方包pipreqs,可以自动帮助我们自动生成requirements.txt github原文介绍:pipreqs-根据任何项目的导入生成pip requirements.txt文件 链接: https://github.com/bndr/pipreqs 第一步:下载pipreqs工具包(pip install pipreqs) Microsoft Windows [版本 10.0.17134.1069] (c) 2018 Microsoft Corporation。保留所有权利。 C:\Users\wy.DESKTOP-KENPKKP\Desktop\Dingda\dingAPI>pip install pipreqs Collecting pipreqs Downloading https://files.pythonhosted.org/packages/f8/8d/2e7c15bc5fcab54f9c5b404b5668fdac65f5e3224b2116097fae1299fc98/pipreqs -0.4.9-py2.py3-none-any.whl Collecting docopt

pip安装模块使用国内镜像源加速安装

这一生的挚爱 提交于 2019-12-03 20:20:57
今天在安装Python模块matplotlib的时候,一直安装不成功,老是提示“socket.timeout: The read operation timed out”或者“Read timed out.” 因为国内的网络访问国外延迟很高,所以安装模块很慢就不说了,还一定安装不上。 1 [root@localhosts ~]# pip3 install --user matplotlib 2 WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. 3 Collecting matplotlib 4 Downloading https://files.pythonhosted.org/packages/57/4f/dd381ecf6c6ab9bcdaa8ea912e866dedc6e696756156d8ecc087e20817e2/matplotlib-3.1.1-cp36-cp36m-manylinux1_x86_64.whl (13.1MB) 5 38% |████████████▍ | 5.1MB 11kB/s eta 0:12:11Exception: 6 Traceback (most recent