spyder

python Spyder not importing numpy

点点圈 提交于 2021-01-28 17:47:16
问题 I am writing a script using python Spyder 2.2.5 with Windows 7, python 2.7 At the very beginning I have tried all the import ways: from numpy import * or import numpy and also import numpy as np And, for each an every line where I use numpy I am getting an error when compiling QR10 = numpy.array(QR10,dtype=float) QR20 = numpy.array(QR20,dtype=float) QR11 = numpy.array(QR11,dtype=float) QR21 = numpy.array(QR21,dtype=float) However, even with this 30 errors, the script works if I run it.... Any

python Spyder not importing numpy

风流意气都作罢 提交于 2021-01-28 17:42:08
问题 I am writing a script using python Spyder 2.2.5 with Windows 7, python 2.7 At the very beginning I have tried all the import ways: from numpy import * or import numpy and also import numpy as np And, for each an every line where I use numpy I am getting an error when compiling QR10 = numpy.array(QR10,dtype=float) QR20 = numpy.array(QR20,dtype=float) QR11 = numpy.array(QR11,dtype=float) QR21 = numpy.array(QR21,dtype=float) However, even with this 30 errors, the script works if I run it.... Any

python Spyder not importing numpy

南笙酒味 提交于 2021-01-28 17:39:50
问题 I am writing a script using python Spyder 2.2.5 with Windows 7, python 2.7 At the very beginning I have tried all the import ways: from numpy import * or import numpy and also import numpy as np And, for each an every line where I use numpy I am getting an error when compiling QR10 = numpy.array(QR10,dtype=float) QR20 = numpy.array(QR20,dtype=float) QR11 = numpy.array(QR11,dtype=float) QR21 = numpy.array(QR21,dtype=float) However, even with this 30 errors, the script works if I run it.... Any

Can't install Spyder through Anaconda Navigator

北慕城南 提交于 2021-01-28 14:22:28
问题 I cannot install Spyder through Anaconda Navigator. I am a complete beginner when it comes to Python and I have no idea what's going wrong. I have to create a new environment and open a project there. What I did so far is: through Anaconda Navigator (1.9.7) I created a new environment (with Python 3.6). Then, for this specific environment I try to install Spyder. I click the 'install' button, a progress bar appears and then nothing happens. I tried the same steps on friend's laptop and when I

Can't install Spyder through Anaconda Navigator

风格不统一 提交于 2021-01-28 14:20:49
问题 I cannot install Spyder through Anaconda Navigator. I am a complete beginner when it comes to Python and I have no idea what's going wrong. I have to create a new environment and open a project there. What I did so far is: through Anaconda Navigator (1.9.7) I created a new environment (with Python 3.6). Then, for this specific environment I try to install Spyder. I click the 'install' button, a progress bar appears and then nothing happens. I tried the same steps on friend's laptop and when I

Jupyter misdisplying Python lists with Arabic and alphanumeric elements

爱⌒轻易说出口 提交于 2021-01-28 08:34:05
问题 I am running into a display problem in Jupyter (both Classic and JupyterLab) for lists that include Arabic string elements and Latin Alphanumeric string elements. For example, if you run: en = '7X' print (en) ar = 'عربي' print (ar) print ([en, ar]) print ([ar, en]) Here is what you get: Obviously, where Arabic is the first element, Jupyter follows an RTL alignment displaying the ar element first on the right, but I don't know why the 'X' jumps from the alphanumeric element or how to fix that.

Anaconda navigator not launching windows 10 (Spyder as well)

别等时光非礼了梦想. 提交于 2021-01-28 05:04:07
问题 I installed the anaconda 64 bit on windows 10. I can launch the prompt but when I try to open navigator thru the icon or thru prompt, I'm getting the error below. Can someone help me? Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Scripts\anaconda-navigator-script.py", line 10, in <module> sys.exit(main()) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 103, in main from anaconda_navigator.app.start import start_app File "C:

ImportError when importing numpy under Spyder from within a Python 3.7 conda environment

你离开我真会死。 提交于 2021-01-27 23:19:29
问题 I have created a conda environment named python3 on my Ubuntu virtual machine using: conda create -n python3 python=3.7 I have installed several packages under this environment, including numpy. When typing conda list , numpy shows up: When running Python from the terminal, I can import numpy just fine, but this is no longer the case when working under the Spyder IDE: I get the following error: ImportError: No module named numpy Just for the record, I have reinstalled Spyder3 from my conda

Cannot run Spyder3 from Windows command prompt

蹲街弑〆低调 提交于 2021-01-27 04:48:16
问题 I downloaded Python3, on a laptop where I already have Python2, in two folders Python3 and Python27 respectively. I have Windows 10, 64 bit. Spyder.exe and Spyder3.exe are in the Scripts subfolders of the installation. I added Python27\Scripts and Python3\Scripts to the Path environment variable. Opening a command prompt and typing spyder correcty starts Spyder2, while typing spyder3 results in: -- I have seen online that this error usually occurs for Pip3 , so I tried to upgrade spyder3, but

Python removing rows with time condition

别来无恙 提交于 2021-01-24 07:06:10
问题 I have 2 sets of Dataframe, both with an unique identifier and a datetime data in the format as such "2020-01-01 00:00:01"-datetime and "12345" - unique identifier and Type 1st Question, DF1: DatetimeX ID Type 2020-01-01 02:00:01 12345 C 2020-01-01 02:00:03 12345 C 2020-01-01 05:00:03 12345 C 2020-01-01 05:03:05 12345 C 2020-01-01 03:00:09 13333 D 2020-01-01 02:00:09 12345 C 2020-01-01 02:01:35 12345 C 2020-01-01 02:10:35 12345 C 2020-01-01 02:00:01 13333 D 2020-01-01 02:05:35 13333 D 2020-01