packages

Automatically Install Package-Based Perl Modules in Ubuntu

落花浮王杯 提交于 2019-12-10 15:17:10
问题 I would like to install the Perl modules required by a specific Perl script, such as those listed by the perl-depends tool. However, I would like to do that in Ubuntu using the apt-get , meaning installing the modules through the package repository and not through CPAN. Most similar questions (such as this one) address ways of doing that through CPAN. 回答1: Debian-Apt-PM 回答2: This will list all packages having perl in them: sudo apt-cache search perl * then: sudo apt-get install pkg_name_in

Why would an R package load random numbers?

扶醉桌前 提交于 2019-12-10 15:06:44
问题 Recently, I was reading the documentation for the caret package when I noticed this: Also, please note that some packages load random numbers when loaded (directly or via namespace) and this may effect [ sic ] reproducibility. What are possible use cases for packages loading random numbers? This seems to be counter to the idea of reproducible research and might interfere with my own attempts to set.seed . (I've started setting seeds closer to code that requires random number generation

How do I perform an import for the entire class in matlab?

可紊 提交于 2019-12-10 14:18:41
问题 I have a class that uses other classes from another package in multiple functions. In order to do this, I current have to import the package in each function: classdef foo properties bar end methods function self = foo() foo.bar = 1; end function fun1(foo) import pkg.FooClass; val = pkg.FooClass(foo.bar); end function fun2(foo) import pkg.FooClass; val = FooClass.fun(foo.bar); end end end Is there a way to import packages for the entire class? I'm looking for something similar to other

Python one class per module and packages

末鹿安然 提交于 2019-12-10 14:07:41
问题 I'm trying to structure my app in Python. Coming back from C#/Java background, I like the approach of one class per file. I'd like my project tree to look like this: [Service] [Database] DbClass1.py DbClass2.py [Model] DbModel1.py DbModel2.py TheService.py [ServiceTests] [Database] DbClass1Tests.py DbClass2Tests.py [Model] DbModel1Tests.py DbModel2Tests.py TheServiceTests.py Is the one class per file approach OK in Python? Is it possible to create packages/modules in such a way so that

pip 指定镜像不超时安装

烈酒焚心 提交于 2019-12-10 14:06:44
命令 pip --default-timeout=100 install --upgrade --force-reinstall -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow 结果 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting tensorflow Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d3/af/296748d4c8d8987423231b93aecce5ab5952f6f2243cb6cedb88dd425397/tensorflow-2.0.0-cp36-cp36m-win_amd64.whl (48.1MB) 100% |████████████████████████████████| 48.1MB 478kB/s Collecting tensorboard<2.1.0,>=2.0.0 (from tensorflow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/76/54

Install Octave Package Manually

£可爱£侵袭症+ 提交于 2019-12-10 12:57:45
问题 I want to install the package dataframe of Octave on one of my servers, which does not have internet access. I used my laptop to download dataframe-1.1.0.tar.gz . I wonder how I can install it on my server manually. 回答1: In the README.html of Octave 4.0.0 folder you can find the following passage: Included Octave Forge Packages A number of Octave-Forge packages have been included with Octave, however they must be installed in order to use them. To install: • Start Octave and then open the

“Invalid signature file digest” error adding Janino package through Maven

試著忘記壹切 提交于 2019-12-10 10:39:32
问题 I'm trying to add a dependency to Janino 2.7.6 through the Maven repository. When I try to run the application, I get this error: --- exec-maven-plugin:1.2.1:exec (unpack-dependencies) @ JanineAttemp2 --- --- exec-maven-plugin:1.2.1:exec (default-cli) @ JanineAttemp2 --- java.lang.SecurityException: Invalid signature file digest for Manifest main attributes at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:284) at sun.security.util.SignatureFileVerifier.process

Packaging to use to deploy cross-platform?

北慕城南 提交于 2019-12-10 10:35:44
问题 On windows applications are typically packaged as MSI, on Redhat Linux as RPM, what would be a best open source packaging method that could be used to deploy applications to all platforms including different flavors of unix and windows? Contents would include exes, unix binaries, java jar files, user data, even database scripts to be run. (I recognize contents would vary per destination OS, ie. binaries would be different, win exe vs unix binary etc, but for example config files may be the

If an R package's licence X is, do all the content in that package have to be licenced under X? [closed]

你。 提交于 2019-12-10 04:37:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Hope the question above is clear. Now my case: For my package, i'm using several libraries (jars). Each library has been licenced under one of these: Apache v2, BSD or LPGL. Edit [some clarification] I have my own java classes packed in a jar. These import classes (dynamic linking) from the libraries mentioned

odbcConnectExcel function from RODBC package for R not found on Ubuntu

不羁岁月 提交于 2019-12-10 04:04:54
问题 Installing the RODBC package on Ubuntu is a bit of a kludge. First I learned to install the following: $ sudo apt-get install r-cran-rodbc That wasn't good enough as the package was still looking for header files. I solved this issue by: $ sudo apt-get install unixodbc-dev Good, RODBC installed properly on the Ubuntu machine. But when I try to run the following script: ## import excel file from Dropbox require("RODBC") channel <- odbcConnectExcel("~/Dropbox/DATA/SAMPLE/petro.xls") petro <-