Installing Jupyter Notebook upgrades my python version - anaconda

I need to user Jupyter Notebook with python version 3.5.
When I create a new environment,with a specific version of python, it works properly
conda create -n newenv python=3.5
If I type pythonin the prompt, I have the proper version
C:\Users\Arthur>python
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32
However, if I install jupyter notebook in the conda GUI, it will automatically switch my python version to the last one
(newenv) C:\Users\Arthur>python
Python 3.7.2 (default, Jan 2 2019, 17:07:39) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
How can I prevent this ?

Related

Version of arch x64 not found

Run actions/setup-python#v1
with:
python-version: 2.7
architecture: x64
Error: Version 2.7 with arch x64 not found
Available versions:
3.10.9 (x64)
3.11.1 (x64)
3.7.15 (x64)
3.8.15 (x64)
3.9.16 (x64)
I don't get which things to change to remove this issue and I am expecting , this 2.7 Version should be installed with x64 architecture.
To add to the comment, there was actions/runner-images issues 810 which request support for Python 2.7 back in... 2020.
An pull request like actions/runner-images PR 1705 illustrated in Sept. 2020 the new states:
Currently, Python 2.7 is set by default on Ubuntu 20.04. Python 2
was sunsetted on Jan 1 2020 and this version is not supported anymore.
In scope of this PR we set the default Python to 3.8 on Ubuntu 20.04.
Alias: bash /usr/bin/python -> /usr/bin/python3 -> /usr/bin/python3.8 /usr/bin/pip -> /usr/bin/pip3
So you would need to install it.

visual studio code Jupyter notebook and debug mode : ipykernel setup required for this feature

I've just setup jupyter nodebooks up on visual studio code and whenever i run it it says "ipykernel setup required for this feature". Any ideas on how to get this working?
this website says to check versions, the only discrepancy i can see is the Jupiter plug in which says I should be at Jupyter Extension v2021.9 but im at Jupyter Extension v2021.8. I cant see a version 9... The version i have installed is the latest one.
*** update, ive installed the latest version of vscode and that allowed me to install a later version of jupyter. Howeverm im still getting the same issue. I'm now running jpyter ver v2021.10.1101450599
import ipykernel
ipykernel.__version__
'6.5.1'
import sys
sys.version
3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]
Im using visual stduio code Version: 1.60.2 (system setup)
Commit: 7f6ab5485bbc008386c4386d08766667e155244e
Date: 2021-09-22T12:00:31.514Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19041
Jupyter notebook ver v2021.8.2041215044

Will Anaconda for Python 2.7 for Windows 7 work on Python 2.6 on Windows?

I have a Windows 7 (64-bit) laptop, still quite powerful for testing and development.
I just installed Python 2.6 for Windows 7 (64-bit) -- because that is the latest I can get. I am following the free Python video courses in MIT Open Courseware (OCW).
Based on the book by Prof. Guttag, Anaconda seems most suitable as the IDE for Python beginners.
My question is: will Anaconda for Python 2.7 (there is no download "for Python 2.6" as of Feb 19, 2019) work?
Would be grateful for any advice/tips/guidance.

pip install cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl to my window 10 machine

Tryng to pip install cx_Freeze using:
python -m pip install c:\Users\yosief\Downloads\cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl
on Window 10 based laptop and I end up with an error
cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform
There are several reasons why you may not be able to install cx_Freeze but luckily it is generally easy to correct.
You should just be able to install cx_Freeze with pip install cx_Freeze. No need to download the wheel.
However if you want to use the wheel file. You should know have downloaded the x64 version for Python 3.6. Your Python installation must be an x64 build and the Python version 3.6.
Check the Python version and build by opening the Python interpreter. The version will be displayed at the top as well as the build.
For example on my PC the interpreter reads:
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
So I know the version is 3.6.3 and is 32 bit (MSC v.1900 32 bit). Take no notice of on win32 it does not give you the right windows build in some cases.
If the build or version is different from what you have downloaded then you must re download the wheel to match the Python build and version.
Then install the wheel file as you did above.

How do I change my default python path for the terminal for windows?

I am trying to install some python modules that are only for 2.x (like mechanize 'tried using pip, easy_install, even running the setup.py'). However, the modules are not showing up for me. I believe this is because I have a few versions of python installed for windows, and the default installation for the terminal is different than my PyCharm Project Interpreter:
My PyCharm project uses the project interpreter: 2.7.10 (C:\Python27\python.exe)
When I type into the terminal of PyCharm:
py -2.7
It calls this version: Enthought Canopy Python 2.7.9 | 64-bit | (default, Jul 1 2015, 03:41:50) [MSC v.1500 64 bit (AMD64)] on win32
However, I have a version of python that is 2.7.10. If I call
py -2.7.10
I get: Unknown Option: -2
Did my path for python 2.7.10 get written over by Enthought Canopy Python 2.7.9? How do I change my terminal python so I can install the appropriate files to run my PyCharm project with project interpreter: 2.7.10 (C:\Python27\python.exe)?
Thank you
The best way to go about going this would be to create a virtual environment (called virtualenv). This is the best link to get you started
Otherwise, open PyCharm, File>>Default Settings>>Project Interpreter>>Select the Interpreter you want to install the packages to, press the red '+' sign to the right, search the package and install.

Resources