packages

Docker学习7-jenkins容器内安装python3

家住魔仙堡 提交于 2020-01-07 05:21:04
前言 很多小伙伴可能在考虑 jenkins 拉取了 github 上的代码后,发现还越少 python3 环境,那能怎么办呢? 咨询了一位运维朋友给我的答案是,将 python3 挂载到容器工作目录上,或者直接复制。 一、浅谈容器内安装 python3 方案 1、将 python3 挂载到容器工作目录上; 2、直接复制 python3 目录到工作目录上; 3、jenkins 容器内安装 python3; 结果:1 、2均均阵亡,为何?明显系统不一样哈,虽然能在命令行中输入 python3 但是 pip3用不了的,执行脚本更是乱七八糟的报错。 (所以不推荐) 最后只能看 3 的了。然后在试验的过程中,发现第3种又分为两种, ① weget 安装(不推荐,基本和现安装的方法差不多,先要安装一些依赖包,如 gcc 等) ② apk add 安装(此版本是alpine :apk add,能够快速安装完成) 最后注意系统版本问题: 如果是 centos 那即是 yum 如果是 ubuntu 那即是 apt-get 如果是 alpine 那即是 apk 二、apk add 安装 1、进入 jenkins 容器 bash: [root@iZbp19lugf22zbsubsf1y6Z ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS

Optimize Apply() While() in R

一世执手 提交于 2020-01-07 04:38:09
问题 The data below is being used to perform comparative analysis. I wrote the code using apply() and while() , and even though it works as expected, I haven't been successful in optimizing it further. Current run time is more than couple of hours in larger data set. Following is small example data set: data_1 A B C D 2 1 3 2.5 data_2 P Q R S 3 2 4 5.5 Data A B C D 1.0 0.5 1.3 1.5 1.5 1.2 5.5 3.5 1.1 0.5 1.3 1.5 1.5 1.2 5.5 3.5 1.5 1.2 5.5 3.5 1.1 0.5 1.3 1.5 1.5 1.2 5.5 3.5 1.0 0.5 1.3 1.5 Code #

pip设置安装源

蹲街弑〆低调 提交于 2020-01-06 23:05:04
问题重现 大家在AnaConda环境下安装包的过程中肯定会遇到下载缓慢的问题。 超时信息如下(为了大家方便通过超时信息找到,牺牲了一些页面体验,把异常信息贴出来): conda.exceptions.CondaRuntimeError: Runtime error: Could not open '/home/ubuntu/anaconda3/pkgs/icu-64.2-he1b5a44_1.tar.bz2.part' for writing (HTTPSConnectionPool(host='conda.anaconda.org', port=443): Read timed out.). During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 473, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/ubuntu/anaconda3/lib/python3.5

python3安装poster报错

孤人 提交于 2020-01-06 21:54:54
报错信息 root@iZ2zef0icee95uw35ttpgmZ:~/wx# sudo pip3 install poster Collecting poster Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/9f/dc/0683a458d21c3d561ab2f71b4fcdd812bf04e55c54e560b0854cea95610e/poster-0.8.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-ivm6deh5/poster/setup.py", line 2, in <module> import poster File "/tmp/pip-build-ivm6deh5/poster/poster/__init__.py", line 29, in <module> import poster.streaminghttp File "/tmp/pip-build-ivm6deh5/poster/poster

Missing packages folder and smart.json file in Meteor.js 0.9

旧时模样 提交于 2020-01-06 03:05:41
问题 It may be a dumb question but I upgraded meteor.js to meteor 0.9 and now, when I add packages, I do not see /packages folder or smart.json file in the root of my project. How can I reach to the source code of the downloaded packages. Thank you. 回答1: The source code of the downloaded packages is in a semi compiled state, nothing like what you would find on github. To access these have a look at ~/.meteor/packages . You would find them with the new notation e.g for iron:router you would see

安装软件包 rpm yum

南楼画角 提交于 2020-01-06 01:32:32
安装与卸载软件 rpm 工具 yum 工具 源码包 rpm 工具 设置光驱并挂载 #mount /dev/cdrom /mnt rpm 包格式,包名-版本号-发布版本号.平台 #zziplib-0.13.62-5.el7.x86_64.rpm rpm -ivh xx.rpm #安装 rpm -Uvh xx.rpm #升级 rpm -e xx.rpm #卸载 rpm -qa #查询系统安装的包 rpm -q xx.rpm #查询制定包是否已经安装 rpm -qi xx.rpm #查询制定包信息 rpm -ql xx.rpm #列出安装包的文件 rpm -qf 文件绝对路径 #查看一个文件是由哪个包安装 rpm 工具使用 rpm -qf /usr/bin/ls [root@xujb01 Packages]# rpm -qf /usr/bin/ls coreutils-8.22-18.el7.x86_64 rpm -ql coreutils [root@xujb01 Packages]# rpm -ql coreutils /etc/DIR_COLORS /etc/DIR_COLORS.256color /etc/DIR_COLORS.lightbgcolor /etc/profile.d/colorls.csh /etc/profile.d/colorls.sh ...省略 rpm

Docker学习7-jenkins容器内安装python3

ⅰ亾dé卋堺 提交于 2020-01-05 13:50:24
前言 很多小伙伴可能在考虑 jenkins 拉取了 github 上的代码后,发现还越少 python3 环境,那能怎么办呢? 咨询了一位运维朋友给我的答案是,将 python3 挂载到容器工作目录上,或者直接复制。 一、浅谈容器内安装 python3 方案 1、将 python3 挂载到容器工作目录上; 2、直接复制 python3 目录到工作目录上; 3、jenkins 容器内安装 python3; 结果:1 、2均均阵亡,为何?明显系统不一样哈,虽然能在命令行中输入 python3 但是 pip3用不了的,执行脚本更是乱七八糟的报错。 (所以不推荐) 最后只能看 3 的了。然后在试验的过程中,发现第3种又分为两种, ① weget 安装(不推荐,基本和现安装的方法差不多,先要安装一些依赖包,如 gcc 等) ② apk add 安装(此版本是alpine :apk add,能够快速安装完成) 最后注意系统版本问题: 如果是 centos 那即是 yum 如果是 ubuntu 那即是 apt-get 如果是 alpine 那即是 apk 二、apk add 安装 1、进入 jenkins 容器 bash: [root@iZbp19lugf22zbsubsf1y6Z ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS

After renaming package my project showing error while building in android

佐手、 提交于 2020-01-05 04:19:09
问题 After renaming package my project showing error while building in android. I used this: Android Studio Rename Package for renaming my project and after that it started getting these errors: Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide

Does the star import include subpackages in Java?

落爺英雄遲暮 提交于 2020-01-04 13:51:17
问题 When you declare an import like this: import com.microsoft.azure.storage.*; Does that include everything in its subpackages too? For example, does it include this? import com.microsoft.azure.storage.blob.* If not, why not? (Edit: the "why" question is basically off topic. ignoring that bit when considering a correct answer.) 回答1: No it does not. It only imports everything in the package (i.e. the directory itself). Sub-directories are considered to be different packages, so you would need to:

package ‘syncwave’/‘mvcwt’ is not available (for R version 3.0.2) [duplicate]

做~自己de王妃 提交于 2020-01-04 09:02:11
问题 This question already has answers here : How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning? (15 answers) Closed 5 years ago . I would like to install the packages mvcwt and SynchWave but get following messages: Warning message: package ‘mvcwt’ is not available (for R version 3.0.2) Warning message: package ‘syncwave’ is not available (for R version 3.0.2) In the reference manual to mvcwt there is no reference on which version of R the package depends. But