简体   繁体   English

在Windows 7和10上使用python

[英]Using python on windows 7 and 10

Recently been having trouble using python on my laptop. 最近在笔记本电脑上使用python时遇到了麻烦。 I used to have windows 8.1 in my laptop, but saw most of my classmates use python with windows 10. So I updated to windows 10. Still having problems. 我曾经在笔记本电脑中安装过Windows 8.1,但看到我的大多数同学都在Windows 10中使用python。所以我更新到Windows10。仍然有问题。 I ended up using my desktop which has windows 7 and it worked perfectly. 我最终使用了装有Windows 7的桌面,并且运行良好。 The problems have been when I would try and plot graphs or when id use arange. 问题是当我尝试绘制图表或id使用arange时。 My question is, does windows really play a factor on python? 我的问题是,Windows是否真的在python上发挥作用? they both have python version 3.5.1 python build 4 and 144 installed packages. 他们俩都有python版本3.5.1 python build 4和144安装包。

from numpy import *
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import *
from pylab import *
import pylab as pl
from matplotlib.pyplot import *
from math import exp, expm1
from __future__ import division
%matplotlib inline

There is nothing to do with windows. 与Windows无关。 Either way you can uninstall python and reinstall it,may resolve your problem. 无论哪种方式,您都可以卸载python并重新安装它,可以解决您的问题。 But make sure you have installed numpy as well.You can get package for that http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy . 但是请确保还安装了numpy。您可以获取该http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy的软件包。 Python installation has nothing to do with your windows version. Python安装与Windows版本无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM