install

problem with bundle

青春壹個敷衍的年華 提交于 2020-01-21 03:35:26
问题 I try command bundle install --local but it show issue: -bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or directory. please help me. 回答1: I think you need to export the path of ruby and bundle in your .bashrc (linux). Open your .bashrc and add this line: export PATH="$PATH:/usr/bin:/usr/local/bin/" It should work. 回答2: The solution that worked for me was entirely different, perhaps because I've been inconsistent about using RVM or not. I used 'which bundler'

problem with bundle

偶尔善良 提交于 2020-01-21 03:35:06
问题 I try command bundle install --local but it show issue: -bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or directory. please help me. 回答1: I think you need to export the path of ruby and bundle in your .bashrc (linux). Open your .bashrc and add this line: export PATH="$PATH:/usr/bin:/usr/local/bin/" It should work. 回答2: The solution that worked for me was entirely different, perhaps because I've been inconsistent about using RVM or not. I used 'which bundler'

MySQL:Linux下MySQL安装

天大地大妈咪最大 提交于 2020-01-21 03:09:10
如果遇到问题,敬请指正,不胜感激! Linux下MySQL安装步骤 1. 下载安装包 2. 安装前检查 3. 正式安装 4.安装问题及解决方案 5. 参考 1. 下载安装包 下载地址: https://dev.mysql.com/downloads/mysql/ 按照需要选择版本 2. 安装前检查 系统是否安装自带mysql # 检查命令 rpm -qa | grep mysql # 卸载命令 rpm -e mysql..... // 普通删除 rpm -e --nodes mysql-libs.... // 普通删除无法删除,可使用强力删除 系统是否存在 mariadb 数据库 rpm -qa | grep mariadb # 如果有,则卸载 rpm -e --nodeps mariadb-libs...... 3. 正式安装 上传安装包 看个人采用什么方式上传,我用的xshell, 使用sftp命令put到/home/software目录下面。 也可以采用winscp。 解压安装包 cp /home/software/mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz /home/install/ cd /home/install tar -xzf mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz mv

从零开始搭建"Talking Head Anime from a Single Image"的使用环境

折月煮酒 提交于 2020-01-21 00:43:48
目录 前言 安装Anaconda 配置python环境 安装CUDA 安装CUDNN 安装pytorch 安装dlib 下载工程文件 运行 前言 由于朋友想要体验一下现代机器学习的神奇之处,帮朋友从零开始装了次pytorch运行环境,顺便写篇笔记记录一下.(才不是我馋他的2080) Talking Head Anime from a Single Image项目博客 talking-head-anime-demo项目的github 安装Anaconda 下载链接 更换国内源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ 配置python环境 安装并更新pip3 cd D:\Anaconda3\Scripts easy_install.exe pip pip3 install --upgrade pip -i

from PIL import Image 报错

南楼画角 提交于 2020-01-20 21:17:57
选择Install package ** 发生错误,是因为我没有安装PIL 1、 Win + R , 输入cmd 进入, 输入: pip install pillow pip install image 下载完成再回到 Pycharm , Install package **,发现还是报错,接下来我们需要 2、 打开File -- Settings -- Project Interpreter , 找到python.exe位置( 在cmd命令中输入:where python 可以找到: ) 3、 选中双击 Pillow ,会出现如下界面,选中Pillow,点击 Install Package 4、 如3的步骤,选中并双击 image,选着image --- Install Package 5、这时候回到界面等待完成,就不会报错了 来源: CSDN 作者: 懒笑翻 链接: https://blog.csdn.net/c_lanxiaofang/article/details/104053185

installing gems using rvm

喜你入骨 提交于 2020-01-20 17:23:29
问题 When trying to install gems using rvm i get this error $ rvm gem install sproutcore ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/tee/.gem/specs but it says on the rvm site that you should not use sudo so I'm not sure whats wrong with my setup when i type $GEM_HOME it shows that the directory is pointing to the rvm dir $GEM_HOME bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory Any ideas what I'm doing wrong? 回答1: There's a permission issue with your .gem

PWC-NET环境配置

大兔子大兔子 提交于 2020-01-20 16:26:02
目录: /data/zzx/PWC-Net/PyTorch/ # setup environment conda create -n pwcnet_test python=2.7 anaconda conda activate pwcnet_test # install pytorch and other dependencies pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl pip install torchvision visdom dominate opencv-python cffi # install external packages cd external_packages/correlation-pytorch-master/ bash make_cuda.sh 报错后 pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl 应该可以成功 cd ../../ run: python script_pwc.py '/data/illegalparking/yangzhou

react--需要插件

醉酒当歌 提交于 2020-01-20 12:36:52
npm install -save axios(请求数据) npm install antd --save(Ant Design 是React UI的组件库) npm install --save redux 谷歌浏览器 应用商店搜索redux dev tools安装测试工具: import { createStore } from 'redux'; import reducer from './reducer.js'; const store = createStore( reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() ); export default store; js解密 npm install --save crypto-js axios.post请求后台数据,发送请求前: axios.interceptors.request.use(function (config) { // 在发送请求之前做些什么 console.log(config); return config; }, function (error) { // 对请求错误做些什么 return Promise.reject(error); }); 来源: CSDN 作者: 人生如初见

ubuntu命令大全

不羁的心 提交于 2020-01-20 10:20:04
查看软件xxx安装内容 dpkg -L xxx 查找软件库中的软件 apt-cache search 正则表达式 查找软件库中的软件 aptitude search 软件包 查找文件属于哪个包 dpkg -S filename 查找文件属于哪个包 apt-file search filename 查询软件xxx依赖哪些包 apt-cache depends xxx 查询软件xxx被哪些包依赖 apt-cache rdepends xxx 增加一个光盘源 sudo apt-cdrom add 系统升级 sudo apt-get update;sudo apt-get dist-upgrade 清除已删除包的残馀配置文件 dpkg -l |grep ^rc|awk ‘{print $2}’ |sudo xargs dpkg -P 编译时缺少h文件的自动处理 sudo auto-apt run ./configure 查看安装软件时下载包的临时存放目录 ls /var/cache/apt/archives 备份当前系统安装的所有包的列表 dpkg –get-selections | grep -v deinstall > ~/somefile 从备份的安装包的列表文件恢复所有包 dpkg –set-selections < ~/somefile;sudo dselect

pandas-compat: 'import pandas' gives AttributeError: module 'pandas' has no attribute 'compat'

五迷三道 提交于 2020-01-20 08:10:05
问题 >>> import pandas Traceback (most recent call last): File "<pyshell#8>", line 1, in <module> import pandas File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site- packages/pandas/__init__.py", line 40, in <module> import pandas.core.config_init File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site- packages/pandas/core/config_init.py", line 14, in <module> import pandas.core.config as cf File "/Library/Frameworks/Python.framework/Versions/3.6/lib