conda

关于python安装第三方库速度慢解决方案(opencv为例)

守給你的承諾、 提交于 2021-02-02 08:51:29
安装时使用国内镜像链接 阿里云 http:// mirrors.aliyun.com/pypi /simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http:// pypi.douban.com/simple/ 清华大学 https:// pypi.tuna.tsinghua.edu.cn /simple/ 中国科学技术大学 http:// pypi.mirrors.ustc.edu.cn /simple/ 使用指令指定源: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python 秒秒种成功安装 还有scarpy安装很烦 所以使用conda install scrapy也很快(必须安装anaconda) 来源: oschina 链接: https://my.oschina.net/u/4269500/blog/3626548

vscode IntelliSense / code completion doesn't work when I am not in base conda environment

血红的双手。 提交于 2021-01-29 19:12:27
问题 When I change my project to another conda environment than base environment, python code completion doesn't work anymore for installed modules (like cv2). I have no problem detecting the environment or running my code though. How can I fix it ? 回答1: Open your Anaconda Prompt, activate the environment, and then launch VS Code from within the activated environment (i.e. code . ). 来源: https://stackoverflow.com/questions/62018436/vscode-intellisense-code-completion-doesnt-work-when-i-am-not-in

Understanding `conda install` (channel and packages)

安稳与你 提交于 2021-01-29 15:06:59
问题 I am trying to install fastai but I don't understand what they are trying to do with conda install . The man page of fastai says: conda install -c fastai -c pytorch -c anaconda fastai gh anaconda Does this mean: the channels to be used are fastai , pytorch and anaconda while the packages to be installed are fastai , gh and anaconda respectively? I think they want to install pytorch and fastai basically. But they don't even mention pytorch package. conda install seems to be done like this:

installed and then wanted to open the anaconda navigator on my laptop

陌路散爱 提交于 2021-01-29 13:13:32
问题 so i'm unable to open the anaconda navigator. here i tried the conda update --all command and this is what it showed (base) C:\Users\dell>conda update --all Collecting package metadata (current_repodata.json): done Solving environment: done Package Plan environment location: C:\Users\dell\anaconda3 The following packages will be downloaded: package | build ---------------------------|----------------- _anaconda_depends-2019.03 | py37_0 6 KB anaconda-custom | py37_1 3 KB astropy-4.0.1.post1 |

PyTorch Cuda with anaconda not available

安稳与你 提交于 2021-01-29 10:37:00
问题 I'm using anaconda to regulate my environment, for a project i have to use my GPU for network training. I use pytorch for my project and i'm trying to get CUDA working. I installed cudatoolkit, numba, cudnn still, when i try this command: torch.cuda.is_available() I get "False" as output. This is my environment: # Name Version Build Channel blas 1.0 mkl bzip2 1.0.6 h470a237_2 conda-forge ca-certificates 2018.03.07 0 cairo 1.14.12 he6fea26_5 conda-forge certifi 2018.8.24 py35_1 cffi 1.11.5

Prevent conda from automatically downgrading python package

不羁岁月 提交于 2021-01-29 10:04:37
问题 I had problems with pandas-datareader package v0.81. To fix my problem, I had to upgrade the package to a newer version 0.9 by running the following command; conda install -c anaconda pandas-datareader Unfortunately, when I tried to upgrade conda packages later using the command conda update --all , pandas-datareader is downgraded back to v0.81. v0.81 is from conda-forge channel. What I want is the v0.9 from anaconda channel. Below is what I want. https://anaconda.org/anaconda/pandas

VS Code: Can't load anaconda environment on Python Interactive

梦想的初衷 提交于 2021-01-29 09:49:01
问题 I am using VS Code in Windows 10. I am able to use the dependencies in my conda environment if I Run the Python Script in Terminal. However, I am not able to use the environment in the Python Interactive shell. For instance, I am using my datascience environment which has the package fuzzywuzzy . I have included the env path into the settings.json as the python.pythonPath . But the Python version used in the Jupyter Notebook is the default anaconda base C:\\ProgramData\\Anaconda3\\python.exe

Anaconda installation modifying .bash_profile on Mac OS X

不打扰是莪最后的温柔 提交于 2021-01-29 09:42:02
问题 I installed Anaconda on my Mac (Mojave) and now whenever I start a shell it automatically activates the conda environment. This was totally fine until I realized some of the commands in my .bashrc were not being executed on startup. In particular, I had increased HISTSIZE and HISTFILESIZE but they always seemed to be stuck at their default values of 500. After some googling, I learnt that because of my anaconda installation, it was my .bash_profile that was being used on startup and not

ImportError with python-pptx

左心房为你撑大大i 提交于 2021-01-29 06:07:04
问题 I faced with problem when I installed python-pptx with conda on cleaned environment: conda install -c conda-forge python-pptx. After install was successfully finished I tried to import pptx module and got following error: >>> import pptx Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\SazonovEO\AppData\Local\Continuum\anaconda3\envs\new\lib\site-p ackages\pptx\__init__.py", line 13, in <module> from pptx.api import Presentation # noqa File "C:\Users

adding conda environment via cmd line to jupyter doesn't work

北城以北 提交于 2021-01-29 06:02:06
问题 Trying to get OSMnx into jupyter conda environment. But conda environment not set correctly. On command line: Created conda environment using OSMnx installation steps I cloned the environment to rename it 'realestate' Added realestate to Jupyter: > conda activate realestate > conda install -c anaconda ipykernel > python -m ipykernel install --user --name=realestate > which python /opt/anaconda3/envs/realestate/bin/python On Jupyter the realestate environment shows up... but when I run !which