Anaconda

package installed but not showing in the pycharm's available packages

大城市里の小女人 提交于 2020-01-16 18:40:22
问题 I installed the PyAutoGUI package using pip install pyautogui . I can tell it's installed since I can import it using the PyCharm terminal: Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pyautogui >>> print(pyautogui) <module 'pyautogui' from 'C:\\python\\anaconda3\\lib\\site packages\\pyautogui\\__init__.py'> >>> My problem is: When I try to add it to my

Switch between Python 3.x and 3.y through anaconda?

让人想犯罪 __ 提交于 2020-01-16 12:35:06
问题 I have a HDP cluster and I'm working with couple data scientist, we're working on Python 3.5 (anaconda3) and I would switch to the new Python version 3.6 while keeping the previous version which is 3.5 My questions: Is that possible having 2 version of Python like 3.5 and 3.6 through anaconda? if that true, how can I switch between those two version? 回答1: You have to create two environments: conda create -n py35 python=3.5 conda create -n py36 python=3.6 then you can change to the desired

How to create some environments for tensorflow in anaconda?

瘦欲@ 提交于 2020-01-16 12:00:02
问题 Fairly new to python here, I need a couple of TensorFlow environments for anaconda (one is tf, while the other is an older version). How do people usually do stuff like this? Edit: got by one obstacle. Was having problems removing environments. Found way to fix this. Was getting: PackagesNotFoundError: The following packages are missing from the target environment: - Now going to try @B200011011 suggestion: conda create -n myenv python=3.7 ... got 3.8.1 but I can not install tensorflow: ...

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2>

情到浓时终转凉″ 提交于 2020-01-16 08:19:46
问题 I'm setting up the virtual enviornment of django for the first time. I've downloaded the anaconda library of python in my D drive. So initially I set up the path of python and conda(Scripts) manually in advance system settings. But now when I'm creating the enviornment using command conda create --name mydjang0 django the command prompt is showing an error like this- C:\Users\AABHA GAUTAM> conda create --name mydjang0 django Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION

How to use arcpy module in Anaconda's install of Spyder?

北城以北 提交于 2020-01-15 12:14:07
问题 I recently installed Anaconda's Python distribution, which includes Spyder IDE. I am interested in importing the ArcGIS 10.3 arcpy module in Spyder. Unfortunately, running import arcpy results in the following error: import arcpy Traceback (most recent call last): File "<ipython-input-2-50d283eebbb3>", line 1, in <module> import arcpy File "C:\Program Files (x86)\ArcGIS\Desktop10.3\arcpy\arcpy\__init__.py", line 21, in <module> from arcpy.geoprocessing import gp File "C:\Program Files (x86)

Python hangs while executing pip and virtualenv and brings no results

故事扮演 提交于 2020-01-15 09:17:46
问题 I tried to set up a virtual environment for my project by executing virtualenv myenv . The folder seemed to be generated, but the command hung, and I couldn't execute another command. I had to close the console and restart cmd. The folder was generated, as I said, but I couldn't activate the virtual environment by venv\Scripts\activate . I met the same behaviour while trying to execute pip freeze > requirements.txt . The file was generated, but it was empty, although I used a lot of packages

Python hangs while executing pip and virtualenv and brings no results

依然范特西╮ 提交于 2020-01-15 09:17:33
问题 I tried to set up a virtual environment for my project by executing virtualenv myenv . The folder seemed to be generated, but the command hung, and I couldn't execute another command. I had to close the console and restart cmd. The folder was generated, as I said, but I couldn't activate the virtual environment by venv\Scripts\activate . I met the same behaviour while trying to execute pip freeze > requirements.txt . The file was generated, but it was empty, although I used a lot of packages

Anaconda下的TensorFlow环境搭建

为君一笑 提交于 2020-01-14 23:01:20
大二上学期,笔者有幸能参与到老师的一个计算机视觉方面的项目,用了一段时间自学python后,准备搭建TensorFlow框架,结果尝尽了苦头,遇到各种问题,经过一段时间的摸索后,也有了一定的经验,现在整理成这篇博客发布出来,希望能为对机器学习感兴趣的小伙伴有所帮助。 (注:因为开发环境不同,不一定适合所有人) # 1.Anaconda安装 Anaconda是一个开源的python发行版本,包含大量的科学包,例如numpy、conda等等,如果只需要一部分包,可以选择使用Miniconda这个较小的发行版,(仅包含conda和python)。 下载地址 (https://www.anaconda.com/download/) 目前最新的Anaconda适合Python3.7版本,笔者最开始安装的是python3.7版本,但是在后来的学习中发现许多包并没有cp37的版本,于是只得换回python3.6版本的Anaconda。 (注:关于对应python3.6版本的Anaconda可自行在网上搜索,安装和后续环境变量的设置以及验证是否设置成功请自行解决,在这里就不一一赘述了)( 才不是手冷不想写 ) # 2. TensorFlow——CPU和GPU ## 2.1 pip 在下载一些python包的时候经常会出现time out,毕竟很多都要去外网下载,这个时候用国内的一些镜像就比较快了

Can't import apply_transform from keras.preprocessing.image

我是研究僧i 提交于 2020-01-14 19:34:15
问题 I have been having issues importing apply_transform from keras.preprocessing.image . As far as I know the name has not changed according to Keras documentation. Anyone has any idea what might be the issue. I can, from the same library, import ImageDataGenerator for instance. 回答1: apply_transform has been removed from image module and has been refactored as one of the methods of ImageDataGenerator class. Instead you can define an instance of ImageDataGenerator class and use it: from keras

Linux目录和文件高级操作精讲

坚强是说给别人听的谎言 提交于 2020-01-14 12:19:05
博文目录 一、Linux目录结构 二、Linux查看文件内容基础命令 三、压缩和解压缩文件 四、vi文本编辑器 一、Linux目录结构 Linux目录结构采用树形目录结构,包含根目录和子目录。 1、根目录 所有分区、目录、文件等的位置起点,整个树形目录结构中,使用独立的一个“/”表示。 2、子目录 常见的子目录如/root、/bin、/boot、/dev、/etc、/home、/var、/usr、/sbin。 3、子目录的作用 二、Linux查看文件内容基础命令 1、cat——查看文件内容 cat用于一次性显示文件全部内容。基本语法格式如下: 应用举例: [root@centos01 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 [root@centos01 ~]# cat /etc/sysconfig/network # Created by anaconda [root@centos01 ~]# cat /etc/sysconfig/network /etc/hosts # Created by