conda

Apparently conda cannot find some very common packages: what am I doing wrong?

余生长醉 提交于 2019-12-07 21:01:42
问题 Environment: I'm using conda 4.6.7 on a Mac with High Sierra. I got some legacy Python code, and first of all I'd like to run it. Of course, since this is research code, I didn't expect to find "fancy stuff (!!)" such as a test suite, but I was hoping that at least a requirements.txt file would be provided. Pipe dream. After GREPping the list of import s across the various files composing the project, I came up with the following list of packages to be installed: conda install os sys math

Huge errors trying numba

大城市里の小女人 提交于 2019-12-07 16:53:58
问题 I'm running into a big load of errors using numba. Ironically, the correct result is printed after the errors. I'm using the newest Anaconda python and installed numba with conda install numba once on Ubuntu 13, 64 bit and also anaconda 64 bit and on windows 64 bit with a 32 bit version of anaconda. The script I'm trying to execute is: # -*- coding: utf-8 -*- import math from numba import autojit pi = math.pi @autojit def sinc(x): if x == 0.0: return 1.0 else: return math.sin(x*pi)/(pi*x) if

Reproducing conda environment when packages are no longer available from channels

六月ゝ 毕业季﹏ 提交于 2019-12-07 11:35:30
问题 I would like to publish the conda environment used for data analysis underlying a scientific paper. I saved the environment to a .yml file using conda env export > environment.yml I was able to re-create the same environment on a different machine for a while using conda env create -f environment.yml . A couple of months later, creating the environment from the same .yml file fails: ResolvePackageNotFound: - vc=14.1=h0510ff6_3 - vs2015_runtime=15.5.2=3 Presumably these versions are not longer

Activate virtual environement and start jupyter notebook all in batch file

拟墨画扇 提交于 2019-12-07 11:19:38
问题 I created the following batch file: jupyter_nn.bat . Inside file I have: cd "C:\My_favorite_path" activate neuralnets jupyter notebook So the goal is to activate conda virtual environment and start jupyter notebook. For some reason this does not work. Window immediately shuts down. If I run this batch file from cmd, it only executes activate neulranets . I already tried pause and pause>nul and other voodoo dances. Any suggestions? Also this is for Windows 7. 回答1: You need to add CALL before

(原+修改)ubuntu上离线安装pytorch

旧街凉风 提交于 2019-12-07 10:35:33
转载请注明出处: https://www.cnblogs.com/darkknightzh/p/12000809.html 参考网址: https://blog.csdn.net/qq_41936559/article/details/102699082 可直接去参考网址查看。 目前使用conda安装pytorch太慢了。。。换成国内通道,不知道为什么,还是很慢,经常断,这时候,可以离线安装pytorch。 1. 去conda官网 https://anaconda.org/pytorch/pytorch/files 下载pytorch: 2. 去conda官网下载torchvision: https://anaconda.org/pytorch/torchvision/files 3. 去conda官网下载cudatoolkit: https://anaconda.org/anaconda/cudatoolkit/files 4. 离线安装pytorch、torchvision、cudatoolkit等(后缀bz2要保留。若使用迅雷下载,可能会添加.tar的后缀,如xxx.tar.bz2.tar,此时需要删除.tar,只保留到bz2): conda install --offline pytorch-1.3.1-py3.7_cuda10.1.243_cudnn7.6.3_0.tar

JupyterLab安装地图插件

旧巷老猫 提交于 2019-12-07 09:23:21
JupyterLab安装地图插件 (本文所述软件还在发展之中,欢迎加入开源项目,提供建议、测试和开发。) 在 Jupyter 中进行数据分析时,往往需要将数据叠加到地图上。简单的地图需求可以利用matplotlib/echarts/bokeh的地图显示功能,更为复杂的可以使用SuperMap/Leaflet/GMaps提供的地图插件,实现交互的地图操作,可以显示和操作大比例尺的专业级地图,甚至调用专业GIS服务进行空间分析,当然这操作起来也会更复杂一些。 上图来自于Kubernetes和JupyterLab支持, https://github.com/openthings/iclient-python 1、iClientPy iClientPy是由超图软件公司(http://www.supermap.com)开发的一个开源项目,可以将SuperMap iServer和Online服务通过python API访问,并支持Jupyter的编程和集成化分析。目前该项目还在开发之中,尚未形成发布版本(预计2018年底发布)。项目地址如下: 文档, http://iclientpy.supermap.io/geticlientpy.html 源码, https://github.com/SuperMap/iclient-python 由于conda安装国内访问较慢,可以加入镜像站

Install pybox2d for python 3.6 with conda 4.3.21

久未见 提交于 2019-12-07 06:47:31
问题 i want to play with the lunar lander env from OpenAI gym. In order to run this code I need to install Box2d, this is where my problems arise. I am using ubuntu 16.04 with conda 4.3.21 and python 3.6. When I tried to run the environment I received the error: ModuleNotFoundError: No module named '_Box2D' So I tried the direct install of pybox2d: https://github.com/pybox2d/pybox2d/blob/master/INSTALL.md which yielded the same error message. Then I tried to install from GitHub following the way

Windows: Anaconda 'python' is not recognized as an internal or external command on CMD

喜你入骨 提交于 2019-12-07 05:09:42
问题 This is starting to get aggravating. I'm getting the typical 'python' is not recognized as an internal or external command... message when trying to run python on the command line. This is a common issue, and I've found plenty of posts saying to fix it by adding python folder ( C:\Users\ftake\Anaconda3 ) my Windows path (restarted my PC after that) but nothing worked for me. The problem is that I've already Anaconda 1.8.2 installed on my computer and when trying to run python on CMD an error

Difference between conda and pip installs within a conda environment

帅比萌擦擦* 提交于 2019-12-07 04:08:31
问题 I seem to be asking myself this question a lot, having recently switched to using conda environments (Anaconda), but I end up Googling and not getting too far. I now run all my projects within their own conda environments, as I like to keep everything as separate and with as little dependencies on other programs as possible. For example, a recent environment: conda create -n RL numpy tensorflow-gpu Then I activate the environment, and realise "Oh - I forgot to install gym". In this case, this

Layout and importing for pytest in python3

亡梦爱人 提交于 2019-12-06 23:48:23
问题 I'm having trouble importing modules from my pytest functions. I know there's a million questions on this, but I've read through a bunch, and I'm still having trouble understanding. $ tree . └── code ├── eight_puzzle.py ├── missionaries_and_cannibals.py ├── node.py ├── search.py └── test ├── test_eight_puzzle.py └── test_search.py 2 directories, 6 files $ $ grep import code/test/test_search.py import sys import pytest import code.search $ $ pytest ... ImportError while importing test module '