PyCharm CE并Anaconda已安装。
我知道我应该创建一个symlinkto $HOME/.anaconda,但是macOS/Linux上的命令是什么?
还是有其他解决办法?
谢谢
我正在尝试安装 geopandas。进行以下设置:
尝试了两件事:
1)
pip install geopandas
Run Code Online (Sandbox Code Playgroud)
这给了我以下错误:
WindowsError: [Error 126] The specified module could not be found 和 Command "python setup.py egg_info" failed with error code 1 in c:\users\username\appdata\local\temp\pip-install-_kgeyw\shapely\
此处类似问题的解决方案表明,这是因为正在转换的路径中的斜线。不知道如何测试这个。
2)
anaconda search -t conda geopandas
Run Code Online (Sandbox Code Playgroud)
然后我搜索适合我的设置的 geopandas 版本(Windows-64):
conda install -c maxalbert geopandas
Run Code Online (Sandbox Code Playgroud)
这会产生以下错误:
UnsatisfiableError: The following specifications were found to be in conflict:
- geopandas
Use "conda info <package> to see the dependencies for each package
Run Code Online (Sandbox Code Playgroud)
当我运行命令时,conda info geopandas我会得到一个 …
我最近在 Ubuntu 17.10(系统环境)中安装了 anaconda3。要运行 anaconda-navigator,我必须每次都激活 root 作为
Source ~/anaconda3/bin/activate root
Run Code Online (Sandbox Code Playgroud)
为了运行它我每次都写
anaconda-navigator
Run Code Online (Sandbox Code Playgroud)
现在我想创建一个桌面条目,但在多个阶段出现错误。您能否从头开始解释如何在 Linux 上为 anaconda3 创建桌面条目?
编辑:我试过在 AskUbuntu 上使用这篇文章。但是,它对我来说失败了。它没有显示在停靠栏和/usr/share/applications. 我真的很沮丧。
我想在 Azure Linux 数据科学虚拟机 (DSVM) 上使用具有特定库(Keras、TensorFlow)的特定 Python 环境,将我的一些本地工作迁移到云端。
我使用 Keras v2.1.6 在终端中创建了环境。另外,我可以在 Jupyter 环境中看到环境。但是,当我将内核切换到新环境并运行时:
import keras
keras.__version__
# output: 2.1.2.
Run Code Online (Sandbox Code Playgroud)
这应该是 2.1.6。
任何帮助,将不胜感激!
我在 Anaconda3 中创建了一个环境,并在 Linux 机器上安装了 pytorch 和 spyder。以下是规格:
spyder 3.3.1
ipython 7.0.1
python 3.7.0
pytorch 0.4.1
torchvision 0.2.1
Run Code Online (Sandbox Code Playgroud)
当我打开 spyder 并导入 Torch 时,它可以工作。之后我安装了 matplotlib 3.0.1。重新启动 spyder 并再次导入 pytorch 会在 spyder 的 ipython 窗口上显示一条消息:
An error ocurred while starting the kernel
terminate called after throwing an instance of 'std::runtime_error'
what(): expected ) but found 'ident' here:
aten::_addmv(Tensor self, Tensor mat, Tensor vec, *, Scalar beta=1, Scalar alpha=1) ?> Tensor
~~~~~~ <??? HERE
Run Code Online (Sandbox Code Playgroud)
在 bash 终端上,我收到以下消息:
js: Not allowed to load local …Run Code Online (Sandbox Code Playgroud) 我正在使用 Kubuntu 并安装了 anaconda。当我打开 Konsole(终端)时,在我获得命令行之前有一个轻微的停顿。轻微的暂停是由正在运行的 conda 进程引起的(查看 top 命令的输出)。我安装了最新版本的 anaconda,然后通过以下方式使用了 3.6 python 环境
conda install python=3.6
Run Code Online (Sandbox Code Playgroud)
(我使用尚未使用 3.7 的 tensorflow)
我之前用过旧版本的anaconda拿到3.6版,没看到这个问题。但是这次我尝试按照上面所示的推荐方式进行操作。
为什么 conda 在启动终端时运行,它在做什么,我该如何停止它?
编辑:添加到我的 bashrc 文件中的内容
Run Code Online (Sandbox Code Playgroud)# added by Anaconda3 5.3.1 installer # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '/home/alex/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then \eval "$__conda_setup" else if [ -f "/home/alex/anaconda3/etc/profile.d/conda.sh" ]; then . "/home/alex/anaconda3/etc/profile.d/conda.sh" CONDA_CHANGEPS1=false conda activate base else \export …
conda 4.6 发布者公告说要运行
conda update conda
Run Code Online (Sandbox Code Playgroud)
进而
conda init
Run Code Online (Sandbox Code Playgroud)
更新工作正常,但 init 报错:
$ conda init
no change /Users/xxxxxx/anaconda3/condabin/conda
no change /Users/xxxxxx/anaconda3/bin/conda
no change /Users/xxxxxx/anaconda3/bin/conda-env
no change /Users/xxxxxx/anaconda3/bin/activate
no change /Users/xxxxxx/anaconda3/bin/deactivate
no change /Users/xxxxxx/anaconda3/etc/profile.d/conda.sh
no change /Users/xxxxxx/anaconda3/etc/fish/conf.d/conda.fish
no change /Users/xxxxxx/anaconda3/shell/condabin/Conda.psm1
no change /Users/xxxxxx/anaconda3/shell/condabin/conda-hook.ps1
no change /Users/xxxxxx/anaconda3/lib/python3.6/site-packages/xonsh/conda.xsh
no change /Users/xxxxxx/anaconda3/etc/profile.d/conda.csh
needs sudo /Users/xxxxxx/.bash_profile
No action taken.
Operation failed.
Run Code Online (Sandbox Code Playgroud)
我没有 .bash_profile。我确实有一个 /Users/xxxxxx/.profile,但无论是否使用 sudo,它都不能直接执行。
有什么想法吗?
如何使用 conda 获取安装在特定环境中的软件包列表,
我尝试使用conda list,但它显示了所有包的列表。
我得到了一台已经安装了 anaconda 的 PC。我不知道它是 3 以外的哪个版本。
每当我尝试在 openpyxl 上查找技术时,似乎有几种方法,具体取决于 openpyxl 的版本。一个答案会说对于 1.8 版以一种方式执行,另一个会说对于 2.5 以其他方式执行。
我如何找出安装了哪个版本的 openpyxl 以便我可以避免尝试不再有效或仅适用于更高版本的技术。
我浏览了https://openpyxl.readthedocs.io/en/stable/api/openpyxl.html。似乎没有返回版本号的函数。
我的目录中 有 qiime2 程序https://qiime2.org/home/owner/anaconda3/envs/qiime2-2019.1。在 Linux 终端中,我运行source activate /home/owner/anaconda3/envs/qiime2-2019.1以启动该程序。
我尝试在 R studio as 中这样做system('source activate /home/owner/anaconda3/envs/qiime2-2019.1'),但它给了我这个错误:sh: 1: activate: not found
Warning message:
In system('activate /home/owner/anaconda3/envs/qiime2-2019.1') :
error in running command
有没有办法在 R 或 Rstudio 中激活 anaconda env?