Anaconda

conda build ignoring my activated environment?

倖福魔咒の 提交于 2020-02-24 20:53:16
问题 I've created a Python 3 Conda environment, expressly for the purpose of testing whether a particular package could be built, targeting Python 3, as opposed to 2. However, when I launch a conda build from this environment, it appears to want to target Python 2.7: (pybert_py3) Davids-MacBook-Air-2:PyBERT dbanas$ conda build conda.recipe/chaco/ BUILD START: chaco-4.6.1-py27_0 I can find nothing in the meta.yaml file, which is directing the build towards Python 2.7. Does anyone know what's going

pip安装了包但pycharm里找不到

北战南征 提交于 2020-02-23 12:07:25
  使用pip install scipy安装了scipy1.2.3,但是打开pycharm里import还是报错,打开pycharm设置,里面的解释器里也找不到所需的包。   原因:安装了anaconda,解释器使用的是anaconda的python      但实际上pip安装到了系统里的解释器中 解决方案:   1.不使用anaconda的解释器,使用原系统的解释器。   2.如果就要在anaconda下安装,用pip安装的时候就需要修改安装路径     pip install --target=“ 目标路径” 工具包名字     目标路径为anaconda-lib-python版本-site-packages     如果使用pip安装过程中,下载东西总是断掉,可以考虑更换为国内源:          https://blog.csdn.net/loyachen/article/details/52996216      安装完后,在site-packages文件夹下可以找到新安装的包了。同时在pycharm设置的解释器里也可以找到了: 来源: https://www.cnblogs.com/sssssaylf/p/12342548.html

Could not import PILLOW_VERSION from PIL

被刻印的时光 ゝ 提交于 2020-02-23 09:15:42
问题 While importing, Python(anaconda) gives the following error: ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' I tried removing pillow and then conda install but the error persists. Please help 回答1: Pillow 7.0.0 removed PILLOW_VERSION , you should use __version__ in your own code instead. https://pillow.readthedocs.io/en/stable/deprecations.html#pillow-version-constant Edit (2020-01-16): If using torchvision, this has been fixed in v0.5.0. To fix: Require torchvision>=0.5.0 If

Could not import PILLOW_VERSION from PIL

独自空忆成欢 提交于 2020-02-23 09:15:11
问题 While importing, Python(anaconda) gives the following error: ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' I tried removing pillow and then conda install but the error persists. Please help 回答1: Pillow 7.0.0 removed PILLOW_VERSION , you should use __version__ in your own code instead. https://pillow.readthedocs.io/en/stable/deprecations.html#pillow-version-constant Edit (2020-01-16): If using torchvision, this has been fixed in v0.5.0. To fix: Require torchvision>=0.5.0 If

Anaconda Installation points to network drive as home folder - cannot start Spyder and Anaconda Navigator

孤街醉人 提交于 2020-02-22 05:15:15
问题 After installing Anaconda 4.3.1, Spyder and Anaconda Navigator do not run. When trying anaconda-navigator through the Anaconda Prompt, I get as an end error: binstar_client.errors.BinstarError: O:: The system cannot find the path specified conda config --show: (C:\Anaconda3) C:\Windows\system32>conda config --show add_anaconda_token: True add_pip_as_python_dependency: True allow_softlinks: True always_copy: False always_softlink: False always_yes: False auto_update_conda: True binstar_upload:

Anaconda Installation points to network drive as home folder - cannot start Spyder and Anaconda Navigator

a 夏天 提交于 2020-02-22 05:12:48
问题 After installing Anaconda 4.3.1, Spyder and Anaconda Navigator do not run. When trying anaconda-navigator through the Anaconda Prompt, I get as an end error: binstar_client.errors.BinstarError: O:: The system cannot find the path specified conda config --show: (C:\Anaconda3) C:\Windows\system32>conda config --show add_anaconda_token: True add_pip_as_python_dependency: True allow_softlinks: True always_copy: False always_softlink: False always_yes: False auto_update_conda: True binstar_upload:

Anaconda Installation points to network drive as home folder - cannot start Spyder and Anaconda Navigator

旧巷老猫 提交于 2020-02-22 05:11:42
问题 After installing Anaconda 4.3.1, Spyder and Anaconda Navigator do not run. When trying anaconda-navigator through the Anaconda Prompt, I get as an end error: binstar_client.errors.BinstarError: O:: The system cannot find the path specified conda config --show: (C:\Anaconda3) C:\Windows\system32>conda config --show add_anaconda_token: True add_pip_as_python_dependency: True allow_softlinks: True always_copy: False always_softlink: False always_yes: False auto_update_conda: True binstar_upload:

3-p03_monkey_peach五猴分桃

我只是一个虾纸丫 提交于 2020-02-22 02:59:42
def get_peaches ( monkeys ) : peaches = 1 while not distribute ( peaches , monkeys ) : peaches += monkeys #每次加1太慢,可以每次加monkeys return peaches def distribute ( peaches , monkeys ) : for _ in range ( monkeys ) : peaches -= 1 if peaches % monkeys != 0 : return False peaches = peaches // monkeys * ( monkeys - 1 ) return True if __name__ == '__main__' : print ( get_peaches ( 5 ) ) D : \Anaconda\python . exe D : / AI20 / 06_codes / deeplearning_20 / p03_monkey_peach . py 3121 Process finished with exit code 0 来源: CSDN 作者: HJZ11 链接: https://blog.csdn.net/HJZ11/article/details/104423127

Anaconda中无法启动Navigator和Spyder解决办法

拜拜、爱过 提交于 2020-02-21 23:31:02
Anaconda中无法启动Navigator和Spyder解决办法 前情简介:一开始安装lebelme,后来安装许久失败了。发现无法pip在线安装包,一直有错误提示在什么动态链上错误。无奈下重新安装Anaconda,安装之后发现无法启动navigator和spyder。参照网上方法无法解决。以为是版本错误,于是又重新装了一遍(蠢哭)。结果,问题依旧存在。 网上求解后,主要参考此方法:https://blog.csdn.net/qq_42868008/article/details/82962293?depth_1.utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task 再次安装一下方法进行解决,前期按照网上的更新了全部的conda包,发现未能解决。于是接着按照步骤,卸载pyqt5 1.卸载pyqt5 pip uninstall pyqt5 2.重新安装pyqt5 pip install pyqt5 中间发现缺少pyhamcrest,直接继续pip把他给整上去。 3.发现仍旧无法启动两者,然后自己试了一下在conda的prompt下使用命令启动spyder,结果出现如图的错误。提示缺少PyQt5.QtWebEngineWidgets,于是继续pip安装此文件

Trouble updating to Spyder 4.0.0

↘锁芯ラ 提交于 2020-02-21 10:36:32
问题 I am under Windows 10, 64 bits. I tried several time to update Spyder 4.0.0 with both the Anaconda Prompt and the Anaconda Navigator. It failed. I uninstalled Anaconda and reinstalled it. Then I ran the Anaconda Prompt as an Administrator and executed : conda update spyder The version of Spyder was 3.3.6. I tried this command : conda install spyder=4.0.0 The prompt returned : Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve.