我用anaconda包安装了新版python 3.6.但是我无法安装tensorflow.总是收到错误
tensorflow_gpu-1.0.0rc2-cp35-cp35m-win_amd64.whl不是此平台上支持的滚轮.
如何在anaconda(python 3.6)上安装tensorflow?
我无法在浏览器中运行笔记本.它没有出现.控制台给我以下错误.我安装了Anaconda.任何帮助将受到高度赞赏.谢谢
C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
"Cython.Distutils.old_build_ext does not properly handle dependencies "
_cffi_ext.c
AppData\Roaming\Python\Python35\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(209): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory
Traceback (most recent call last):
File "C:\Users\Myamoto\Anaconda3\Scripts\jupyter-notebook-script.py", line 3, in <module>
import notebook.notebookapp
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\notebook\notebookapp.py", line 32, in <module>
from zmq.eventloop import ioloop
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\__init__.py", line 34, in <module>
from zmq import backend
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise …Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的私人 self.__food 变量创建一个设置器。基本上我希望子类 Tiger 更改私有变量,该变量有一个限制值超过 100 的条件。但是我收到错误: TypeError: 'int' object is not callable
我哪里错了,我该如何解决这个问题?谢谢
class Animal:
def __init__(self,foodamount=10, location = 'Australia'):
self.__food = foodamount
self.location = location
@property
def foodamt(self):
return self.__food
@foodamt.setter
def foodsetter(self, foodamount):
if self.__food >100:
self.__food = 100
else: self.__food = foodamount
class Tiger(Animal):
def __init__(self,colour = 'orange'):
super().__init__(location ='programming and gaming')
self.colour = colour
an = Tiger()
an.colour='red'
print(an.colour)
ansetfood = an.foodsetter(1000)
print(ansetfood)
Run Code Online (Sandbox Code Playgroud) 我无法使用Python 3打开jupyter笔记本。我安装了适用于Python 2的Anaconda和适用于Python 3的Anaconda(对于Windows均为64位)。如果我为Python 2运行jupyter notebook,则一切正常,但对于Python 3,则无法正常工作。我已经重新安装了Anaconda 3(4.2版本= Python 3.5),但这没有帮助。我还尝试了所有的google结果。从anacoda提示符运行jupyter笔记本时,我仍然收到以下错误。非常感谢您的帮助。
(C:\Users\Myamoto\Anaconda3) C:\Users\Myamoto>jupyter notebook
_cffi_ext.c
AppData\Roaming\Python\Python35\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(209): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory
Traceback (most recent call last):
File "C:\Users\Myamoto\Anaconda3\Scripts\jupyter-notebook-script.py", line 3, in <module>
import notebook.notebookapp
File "C:\Users\Myamoto\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 31, in <module>
from zmq.eventloop import ioloop
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\__init__.py", line 34, in <module>
from zmq import backend
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 27, …Run Code Online (Sandbox Code Playgroud) python ×3
jupyter ×2
anaconda ×1
install ×1
ipython ×1
kernel ×1
object ×1
oop ×1
python-3.x ×1
python-wheel ×1
tensorflow ×1