packages

install old package R

社会主义新天地 提交于 2020-02-06 17:44:15
问题 i'm working in Rstudio version 0.98.507.0 and R 3.1.1. I'm working in a virtual machine, i can not install anything in the computer (professional computer and it's take so long to get authorization for new installation) i'm looking to install package " plotly " but this package require " dplyr " to work; The current version of " dplyr " is only working with R version 3.1.2 as well i'm trying to install an older version of "dplyr but nothing works. i downloaded the files from cran. i put the

install old package R

冷暖自知 提交于 2020-02-06 17:43:31
问题 i'm working in Rstudio version 0.98.507.0 and R 3.1.1. I'm working in a virtual machine, i can not install anything in the computer (professional computer and it's take so long to get authorization for new installation) i'm looking to install package " plotly " but this package require " dplyr " to work; The current version of " dplyr " is only working with R version 3.1.2 as well i'm trying to install an older version of "dplyr but nothing works. i downloaded the files from cran. i put the

解决已安装模块无法import的问题

荒凉一梦 提交于 2020-02-04 04:43:05
问题解决 系统:windows 10 工具:python3.7版本,pycharm,anaconda(电脑之前装过python官方自带的编辑器) 问题:numpy无法import 首先,检查自己pycharm的解释器对应的环境在哪儿,以及里面有没有安装numpy包。这里我对应在base环境下。 在anaconda prompt窗口输入conda list(这是检查base环境下的包)【conda -n xxx(环境名) list检查指定环境下的包】,检查后发现是有numpy包的。 然后,在anaconda prompt窗口中,输入conda uninstall numpy,卸载base环境下的numpy【同理,conda uninstall -n xxx(环境名) numpy】,然后conda install numpy重装,发现还是无法import。 -------------好吧,我再尝试一下------------- 在anaconda prompt窗口中,改用pip命令卸载和安装numpy。 先查一下numpy的信息 (base) C:\Users\Christine Yang>pip show numpy Name: numpy Version: 1.16.5 Summary: NumPy is the fundamental package for array

R - error installing caret package

二次信任 提交于 2020-02-01 05:51:14
问题 > Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), > versionCheck = vI[[j]]) : namespace ‘pbkrtest’ 0.4-2 is being > loaded, but >= 0.4.4 is required > Error: package or namespace load > failed for ‘caret’ Caret was working fine until I tried to load Rcpp and it messed everything up. I searched the answers for a similar problem with caret but the solutions posted did not seem to work on mine. I followed: install.packages("caret", dependencies = TRUE) But it did not work. 回答1: I

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

ε祈祈猫儿з 提交于 2020-02-01 00:38:51
问题 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,

pip离线安装

泪湿孤枕 提交于 2020-01-30 17:27:19
1. 下载需要离线安装的Packages 安装单个Package $ pip install <package> --download packagepath 安装多个Packages $ pip install --download /tmp/packages -r package.txt 2. 将下载好的Packages拷贝至内网服务器 3. 安装Packages 假设内网服务器的目录 /tmp/package 包含你上一步远程拷贝过来packages,在内网服务器上执行如下命令 安装单个Package的情况 $ pip install --no-index --find-links="/tmp/package" <package> 安装多个Packages $ pip install --no-index --find-links="/tmp/package" -r package.txt 补充: 1.下载指定的包到指定文件夹 pip install --download packagepath packagename(-r package.txt) 2.安装指定的离线包 pip install --no-index --find-links=packagepath packagename (-r package.txt) 来源: https://www.cnblogs

怎样预置Android 手机 APK

痞子三分冷 提交于 2020-01-27 10:24:48
预制APK有下面4种情况: 1, 怎样将带源代码的 APK 预置进系统? 2, 怎样将无源代码的APK预置进系统? 3, 怎样预置APK使得用户能够卸载,恢复出厂设置时不能恢复? 4, 怎样预置APK使得用户可以卸载。而且恢复出厂设置时可以恢复? 预制APK实现的方法例如以下; 一、怎样将带源代码的APK预置进系统? 1) 在 packages/apps 以下以须要预置的 APK的 名字创建一个新目录,以预置一个名为Test的APK 为例 2) 将 Test APK的Source code 复制到 Test 文件夹下,删除 /bin 和 /gen 文件夹 3) 在 Test 文件夹下创建一个名为 Android.mk的文件。内容例如以下: LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := Test include $(BUILD_PACKAGE) 4) 打开文件 build/target/product/${Project}.mk (当中 ${Project} 表示project名) 将 Test 加入到 PRODUCT

离线部署 hadoop2.6.5+hive1.2.0+flink1.72

给你一囗甜甜゛ 提交于 2020-01-26 02:59:39
首先要有三台虚拟机 环境 系统: centos7-1908 hadoop: 2.6.5 hive: 1.2.0 flink: 1.7.2 配置 查看虚拟网络编辑器 查看自己的子网 查看子网的网段 可以将ip设置为 192.168.32.128 到 192.168.32.254 之间。 我的网关是 192.168.32.2 在 /etc/sysconfig/network-scripts/ifcfg-ens33 配置好网络,保证节点之间可以互通。 TYPE = Ethernet PROXY_METHOD = none BROWSER_ONLY = no ## ip为固定 BOOTPROTO = static ## DEFROUTE = yes IPV4_FAILURE_FATAL = no IPV6INIT = yes IPV6_AUTOCONF = yes IPV6_DEFROUTE = yes IPV6_FAILURE_FATAL = no IPV6_ADDR_GEN_MODE = stable - privacy NAME = ens33 UUID = 9 c52ecdf - 605 b - 4728 - 8e84 - 10 c786436b95 DEVICE = ens33 ONBOOT = yes ##新增的 ##ip IPADDR = 192.168 .32 .200 #

Linux下Tomcat8.0.44配置使用Apr

谁都会走 提交于 2020-01-23 13:23:51
听说Apr可以提高tomcat很多的性能,配置具体如下 1.安装apr 1.5.2 [root@ecs-3c46 ]# cd /usr/local/src [root@ecs-3c46 src]# wget http://apache.fayea.com//apr/apr-1.5.2.tar.gz [root@ecs-3c46 src]# tar -xzvf apr-1.5.2.tar.gz [root@ecs-3c46 src]# cd apr-1.5.2 [root@ecs-3c46 apr-1.5.2]# ./configure --prefix=/usr/local/apr [root@ecs-3c46 apr-1.5.2]# make [root@ecs-3c46 apr-1.5.2]# make install 2.安装apr-util-1.5.4 [root@ecs-3c46 ]# cd /usr/local/src [root@ecs-3c46 src]# wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz [root@ecs-3c46 src]# tar -xzvf apr-util-1.5.4.tar.gz [root@ecs-3c46 src]# cd apr-util-1.5.4

Why should we place interfaces with classes that use them rather than those that implement them?

你离开我真会死。 提交于 2020-01-22 19:19:06
问题 I was going through an article by Robert C. Martin and at one place he gave a example like this: The first image shows that there's a cyclic dependency between the two packages. To remove this dependency a new interface is added in the second image. B implements the interface and Y uses it. And Martin makes the following point: Interfaces are very often included in the package that uses them, rather than in the package that implements them. My question is, why should we arrange interfaces