packages

Getting help on two functions with the same name in two different packages

爱⌒轻易说出口 提交于 2020-01-15 18:57:53
问题 I know how to use two functions with the same name in two different packages, like packageName:::functionName . But help(packageName:::functionName) does not work even though ?packageName:::functionName . This is strange to me. Any thoughts. library(plyr) library(reshape) plyr:::rename reshape:::rename help(plyr:::rename) ?plyr:::rename 回答1: Read help(help) . You can use help(rename, plyr) to get the documentation for plyr::rename . 来源: https://stackoverflow.com/questions/26223338/getting

ImportError: No module named textract

╄→гoц情女王★ 提交于 2020-01-15 09:20:39
问题 I have installed textract using pip install and ran the import command in jupyter notebook which is throwing the following error. I am on a windows machine and have two versions of python installed(2.7 and 3.6) using conda. I have also added the paths to environment variables as suggested in other posts but still getting the error. import textract ImportErrorTraceback (most recent call last) <ipython-input-2-99b3b0e1733d> in <module>() 1 #Code to extract pdf files ----> 2 import textract 3

Using NuGet to share code across developers

狂风中的少年 提交于 2020-01-15 09:14:51
问题 I am using NuGet in attempt to find a better way to share and update packages to share across multiple developers. I installed Nuget and after choosing the option "Manage | NuGet pakages", I installed the package "HtmlAgilityPack" and noticed it put a packages directory in my Solutions folder. So I assume if wanted to share this application with for other developers to work on, I had to add this package to my repository as well.... This is not exactly what I want as I prefer my packages

Python 3.4 setuptools namespace setup does not work

馋奶兔 提交于 2020-01-15 05:00:09
问题 I am trying to create namespace packages for a modular project. The core system has the following packages homie homie.api homie.events homie.mods I want to install the respective modules as sub-packages of homie.mods . Therefor I provided the respective homie.__init__.py and homie.mods.__init__.py with the following content: from pkg_resources import declare_namespace declare_namespace(__name__) My testing module is structured as follows: homie homie/__init__.py homie/mods homie/mods/__init_

RedHat7.5修改Yum源为CentOS

ぐ巨炮叔叔 提交于 2020-01-14 23:54:23
1.卸载rhel自带Yum包 # rpm -qa|grep yum # 查看原来的yum源 # rpm -qa|grep yum|xargs rpm -e --nodeps # 强制卸载 # rpm -qa|grep yum # 再次查看,确认已经卸载完成 2.下载Yum包 # mkdir /tmp/pkg && cd /tmp/pkg # wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm # wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm # wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm # wget http://vault.centos.org/7.5.1804/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm # wget http://vault.centos

Do OS X upgrades install packages that shadow packages I'm maintaining with pip?

不羁岁月 提交于 2020-01-14 05:36:05
问题 After upgrading to Mavericks (OS 10.9), I found that the locations that Apple's Python (2.7.5) was using for many packages I had installed earlier had changed, 1 and that several had been "downgraded" to older versions. Confusingly, I found that updating these older versions (using pip which I use to maintain my packages) was prevented by the presence of unused but current versions these packages, 2 and that deleting the new (but older) versions that Mavericks had installed was necessary.

如何解决Sublime text中文乱码问题

只愿长相守 提交于 2020-01-14 04:57:55
Sublime Text 2是一个非常不错的源代码及文本编辑器,但是不支持GB2312和GBK编码在很多情况下会非常麻烦。不过Sublime Package Control所以供的插件可以让Sublime Text 2几乎完美地支持CJK编码的文本。 安装Sublime Package Control非常简单。 1、打开Preferences菜单,并选择 Browse Packages… 2、系统会打开Sublime Text 2的Packages文件夹,回到上一级菜单,然后打开Installed Packages文件夹 3、下载并将下载的 Package Control.sublime-package 拷贝到Installed Packages文件夹(注意此处是Installed Packages,不是Packages文件夹) 4、重启Sublime Text 2 然后使用Ctrl+Shift+P打开命令行模式,在里面输入Install Package即可搜索需要的Package。一般使用“ConvertToUTF8”和“GBK Encoding Support”即可正常读取和写入CJK格式的文件了。 来源: https://www.cnblogs.com/xyfll7/p/7591529.html

Linux安装及管理程序精讲

百般思念 提交于 2020-01-13 11:05:51
博文目录 一、RPM包管理工具 二、安装、升级和卸载RPM软件 三、Linux应用程序基础 四、源代码编译安装 一、RPM包管理工具 RPM Pachage Manager由Red Hat公司提出,被众多Linux发行版所采用。建立统一的数据库文件,详细记录软件包安装、卸载等变化信息,能够自动分析软件包依赖关系。RPM软件包一般命名格式如下: 1、查询已安装的RPM软件信息 查询已安装的RPM软件包语法格式如下: 应用举例: [root@centos01 ~]# rpm -qa <!--查询所有已安装的rpm软件信息--> python2-pyasn1-modules-0.1.9-7.el7.noarch mesa-libEGL-17.0.1-6.20170307.el7.x86_64 xcb-util-0.4.0-2.el7.x86_64 python-pyblock-0.53-6.el7.x86_64 sysstat-10.1.5-12.el7.x86_64 sos-3.4-6.el7.centos.noarch xorg-x11-server-Xorg-1.19.3-11.el7.x86_64 libiscsi-1.9.0-7.el7.x86_64 sssd-ldap-1.15.2-50.el7.x86_64 postfix-2.10.1-6.el7.x86_64 …………<

How to use packages installed by quicklisp?

邮差的信 提交于 2020-01-12 03:20:31
问题 I've installed the CL-PNG package using quicklisp. (ql:quicklisp 'png) Now I want to define my own package which depends on the CL-PNG package. Like so: (defpackage :FOO (:use :CL :PNG) (:export :BAR)) When compiling it I get this error: The name "PNG" does not designate any package. [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR] It seems that I have to call (require :PNG) on the REPL before compiling my package. What do I have to do to make the CL-PNG package available for the compiler

如何获取NuGet以安装/更新packages.config中的所有软件包?

筅森魡賤 提交于 2020-01-11 05:41:33
我有一个包含多个项目的解决方案。 大多数第三方引用都丢失了,但是每个项目都有 packages.config 文件。 如何获得 NuGet 来安装/更新所有需要的软件包? 每个项目都需要通过命令行完成吗? #1楼 如果您正在使用网站项目,或者不想启用NuGet包还原,则这是另一种解决方案。 您可以使用程序包管理器控制台枚举package.config文件中的所有程序包,然后重新安装它们。 # read the packages.config file into an XML object [xml]$packages = gc packages.config # install each package $packages.packages.package | % { Install-Package -id $($_.id) -Version $($_.version) } #2楼 在最新的NuGet 2.5版本中,软件包管理器中现在提供了“全部更新”按钮: http : //docs.nuget.org/docs/release-notes/nuget-2.5#​​Update_All_button_to_allow_updating_all_packages_at_once #3楼 在当前解决方案的“所有项目”中重新安装所有软件包: Update-Package