spyder

KeyError / frozen importlib._bootstrap error on second library import in spyder

我与影子孤独终老i 提交于 2020-03-22 07:07:24
问题 I receive a File " <frozen importlib._bootstrap_external> ", line 978, in _get_parent_path KeyError: 'python_library' error when I import a library from a subfolder the second time in spyder, but the first time (after restarting spyder) or outside of spyder it works fine. The code is: from python_library.tools.test_lib import test_func test_func() where test_lib.py is simply def test_func(): print('Hello!') And the output is: runfile('/home/user/Desktop/test.py', wdir='/home/user/Desktop')

How to set path variable inside Spyder on Ubuntu?

巧了我就是萌 提交于 2020-03-18 03:04:37
问题 I am using a package that requires me to add the following line to my bashrc export PATH=${PATH}:~/cozmo/plataform-tools It works perfectly when I call python3 or ipython3 from the command line. However, when I start Spyder by double clicking a python file in Nautilus, it cannot find and execute a required file that is inside that folder. So, my question is How to make the spyder console to use the PATH set at my bashr? Or how to set the path inside spyder? I am aware of Why do the

How to set path variable inside Spyder on Ubuntu?

自闭症网瘾萝莉.ら 提交于 2020-03-18 03:03:13
问题 I am using a package that requires me to add the following line to my bashrc export PATH=${PATH}:~/cozmo/plataform-tools It works perfectly when I call python3 or ipython3 from the command line. However, when I start Spyder by double clicking a python file in Nautilus, it cannot find and execute a required file that is inside that folder. So, my question is How to make the spyder console to use the PATH set at my bashr? Or how to set the path inside spyder? I am aware of Why do the

What can I do to change dot in comma?

北慕城南 提交于 2020-03-04 23:16:22
问题 Good morning! I'm new of python, I use Spyder 4.0 to build neural network. In the script below I use the random forest in order to do feature importances. So the values importances are the ones that tell me what is the importance of each features. Unfortunatly I can't upload the dataset, but I can tell you that there are 18 features and 1 label, both are phisical quantyties and it's a regression problem. I want to export in a excel file the variable importances , but when I do it (simply

What can I do to change dot in comma?

和自甴很熟 提交于 2020-03-04 23:15:59
问题 Good morning! I'm new of python, I use Spyder 4.0 to build neural network. In the script below I use the random forest in order to do feature importances. So the values importances are the ones that tell me what is the importance of each features. Unfortunatly I can't upload the dataset, but I can tell you that there are 18 features and 1 label, both are phisical quantyties and it's a regression problem. I want to export in a excel file the variable importances , but when I do it (simply

updating flask code used for local host 127.0.0.1:5000

Deadly 提交于 2020-03-04 22:20:28
问题 I am trying to develop a simple webpage using the Spyder IDE and Flask. I created the standard 'hello world' page. From within Spyder I ran the script which I also tried running from the Windows Command Prompt/ Using the command python main.py I was able to launch my hello world webpage in http://127.0.0.1:5000/ I've gone back and updated the file to change the display text. Saved the file, restarted the code and the same content appears. I have cleared the cache from the chrome browser I am

Python function import not working in Django using Spyder

旧街凉风 提交于 2020-03-04 19:35:21
问题 My Django project has the following folder structure where controllers is where I keep all custom .py files: C:. │ db.sqlite3 │ manage.py │ ├───myApp │ │ admin.py │ │ apps.py │ │ forms.py │ │ models.py │ │ tests.py │ │ urls.py │ │ views.py │ │ widgets.py │ │ __init__.py │ │ │ ├───controllers │ │ │ helpers.py │ │ │ function.py │ │ │ __init__.py │ │ │ Inside controllers/function.py I want to import the file helpers.py . Scenario 1: If I type from .helpers import foo and run this in Django, then

File permissions issue with python/Spyder/Anaconda after upgrading mac to Catalina

你。 提交于 2020-02-25 06:48:49
问题 After upgrading macOS to Catalina, my Anaconda installation was helpfully reconfigured by Apple. Advice from the Anaconda website suggested a fresh install was the best way to go. Did that and all seemed good. I use spyder from the Anaconda navigator. But trying a previously running python code failed due to apparent file permission problems. For example, file='/Users/stingay/Documents/Coaching/WAIS/2019:20/041019/Race Walk Test-2019-10-04T16.29.13.774-C5612E80FB1D-Accelerometer.csv' with

File permissions issue with python/Spyder/Anaconda after upgrading mac to Catalina

北城余情 提交于 2020-02-25 06:48:06
问题 After upgrading macOS to Catalina, my Anaconda installation was helpfully reconfigured by Apple. Advice from the Anaconda website suggested a fresh install was the best way to go. Did that and all seemed good. I use spyder from the Anaconda navigator. But trying a previously running python code failed due to apparent file permission problems. For example, file='/Users/stingay/Documents/Coaching/WAIS/2019:20/041019/Race Walk Test-2019-10-04T16.29.13.774-C5612E80FB1D-Accelerometer.csv' with

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.