conda

在Mac上安装Anaconda并在PyCharm上配置

元气小坏坏 提交于 2019-12-25 14:05:34
在Mac上安装Anaconda并配置PyCharm 没写过python,也没装过相关IDE,在此做一个记录 安装Anaconda 从 官网 下载,这里选择的是Python3.7版本的图形化安装包 安装后,在命令行中输入 conda --version ,如果安装成功,会显示版本号 但我并没有显示,所以根据 Anaconda之Python环境配置(Mac版) 配置了环境变量: 首先,找到Anaconda的安装路径下bin文件的位置,我的路径是 /opt/anaconda3/bin (再记录一下,在finder的“显示”中,选择“显示路径栏”,就可以显示当前位置) 修改 .bash_profile 文件 vim .bash_profile 添加如下语句后保存退出(PATH中的地址就是bin文件的地址) export PATH="/opt/anaconda3/bin:$PATH" 在命令行中输入,使刚才的文件立刻生效 source $HOME/.bash_profile 再次测试 conda --version ,发现成功显示版本号 记录一下anaconda的相关命令(环境管理部分) # 环境管理 # 查看当前conda版本 conda --version # 查看当前所有环境(*表示当前所在环境) conda env list # 创建新的环境

miniconda文件路径更改后,activate无法激活环境,没有那个文件或目录等Python环境损坏问题解决

我是研究僧i 提交于 2019-12-25 13:22:27
问题描述 系统环境linux centos 原本miniconda所在路径为 /usr/local/miniconda2 被其他人员拷贝到 /home/python/miniconda2 原路径没有miniconda了,在原路径下用conda安装的python3环境也被迁移到新路径了。 使用命令source activate py3 或者 conda activate py3 提示 [root@centos11 profile.d]# conda activate py3 -bash: /home/python/miniconda2/bin/conda: /usr/local/miniconda2/bin/python: 坏的解释器: 没有那个文件或目录 造成激活不了环境的原因和情况,可能有多种,这里只是说我遇到的这种情况的解决。 问题解决过程 在网上搜索一些博客和stackoverflow都没有解决,最后自己折腾一会解决了。 第一步 vim ~/.bashrc 中查看PATH配置 添加为最新miniconda路径 export PATH="/home/python/miniconda2/bin:$PATH" 查看 vim /etc/profile下的路径是否正确 第二步 vim /home/python/miniconda2/bin/activate #!/bin/sh

conda build r-ldavis/ not working

杀马特。学长 韩版系。学妹 提交于 2019-12-25 09:01:40
问题 I am new to jupyter, and I am looking to install an R package (tseries) that is available on CRAN I was trying to follow a question that was raised, but I think I am getting a different problem. I was originally following this link conda - How to install R packages that are not available in "R-essentials"? But it seems obvious that the answer direct me to another link which is https://www.continuum.io/content/conda-data-science under the Building a conda R package They said to run conda

manually installing pysam error: “ImportError: No module named version”

时光总嘲笑我的痴心妄想 提交于 2019-12-25 08:48:31
问题 I am trying to install pysam manually as I am working on a cluster without internet connection and I do not have admin rights (thus doing it through conda is not possible, which I have tried). I have downloaded all the zipped files from the developer's repository (https://github.com/pysam-developers/pysam/archive/master.zip), then I transfer them to my directory in the cluster. I have tried the manual installation from the unzipped repository by running (as indicated in the instructions https

Installing tensorflow with Pip Python 3.5 anaconda in windows

橙三吉。 提交于 2019-12-25 07:44:14
问题 I am trying to install Tensorslow on my Windows 7 64 bit computer. I have installed Anaconda with Python 3.5. After that I did conda install theano it is successfully done. conda install mingw libpython successfully done. pip install tensorflow Error I am not able to install Tensorflow in the same way I installed these other packages. Am I missing something basic? 回答1: Ok, I've updated instructions: *Launch your Anaconda CMD as Admin #if tensorflow virtual env has been created, remove it

add local channel to .condarc on windows

情到浓时终转凉″ 提交于 2019-12-25 05:36:33
问题 I want to add local channel to conda on my windows machine. I added to required line in my .condarc file, my file look like: channels: - C:\Users\sofirx077029\Desktop\cache\ - defaults auto_update_conda: true always_yes: false show_channel_urls: true changeps1: true add_pip_as_python_dependency: true use_pip: true offline: false allow_softlinks: false anaconda_upload: false I created the cache folder and put there some conda packages, which I download from Anaconda Repo. now for example when

Python imports wrong version of sqlite when running tests

回眸只為那壹抹淺笑 提交于 2019-12-25 01:46:03
问题 I'm trying to set up a Windows slave for our Jenkins server, but some of the unit tests are failing due to a sqlite error. We're using conda and have built a custom version of sqlite that includes rtree. Then our application is built using this custom sqlite. When we install our app on the windows server, the correct version of sqlite is installed: $ conda list sqlite 3.16.2 vc9_0 [vc9] file://[package_server] Running the app from the command line it works as expected. When we run tests

How to solve the conda virtual env and system env conflict on import cv2?

本秂侑毒 提交于 2019-12-25 00:43:27
问题 I have installed opencv 3.4.1 correctly on my system enviroment. But after I create a conda virtual environment using a yml file inlcues opencv3.2.0, it leads some problems here: Under the conda virtual env, I have to always first cd PATH_TO_VIRTUAL_ENV/lib/python3.5/site_packages such that import cv2 is correctly using the 3.2.0 version of opencv,without this step, 3.4.1 will be used. Under the conda base environment , if the PATH in ~/.bashrc is added to anaconda3, then I will under conda

anaconda navigator suddenly stops working

一曲冷凌霜 提交于 2019-12-25 00:42:30
问题 Suddenly, my anaconda-navigator stops working! I tried to update it by typing in the terminal: conda update conda conda update anaconda-navigator anaconda-navigator but nothing happened. Then, I tried to install the following packages: pip install chardet and conda install launcher I also tried to delete the following files: rm -rf config.yaml and rm -Rf ~/.continuum ~/.anaconda But nothing happened! I still get the following error: Traceback (most recent call last): File "/Applications

Anaconda3 安装详细介绍

筅森魡賤 提交于 2019-12-25 00:22:51
Anacond的介绍 Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。 因为包含了大量的科学包,Anaconda 的下载文件比较大(约 531 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。 Conda是一个开源的包、环境管理器,可以用于在同一个机器上安装不同版本的软件包及其依赖,并能够在不同的环境之间切换 Anaconda包括Conda、Python以及一大堆安装好的工具包,比如:numpy、pandas等 Miniconda包括Conda、Python Anacond下载 https://www.anaconda.com/distribution/ Anaconda 是跨平台的,有 Windows、macOS、Linux 版本,我们这里以 Windows 版本为例,点击那个 Windows 图标。 我这里选择下载 Python 3.7 version 64-Bit Graphical Installer (462 MB) 当然,你也可以根据自己的实际情况,选择 Python 2.7版的,或者 32-Bit 版本的. 安装包有 462MB,因为网速的关系,下载时间可能会比较长,请耐心等待。我这里下载完成 Anaconda3