Run Python Code in XCode 10! (2018)

preview_player
Показать описание
In this tutorial I will be demonstrating how to run Python scripts within XCode 10.

You will need:
►XCode downloaded
►Python downloaded (I am running v3.7.1) (if you need Python just search on Google from the official website download)
►For good measure always have your Mac up to date from Apple!

You will need to know where Python is on your Mac, so you may need to go to terminal and type: which python
Mine was located in: /usr/bin/python

If you liked this video or if it helped you out please leave a like and share with all your friends!
I hope to be doing these a lot more often, but college really eats up my time.
Thanks for watching again!
Рекомендации по теме
Комментарии
Автор

Thank you for the tutorial! I with Apple made this more simple.

When I clicked run, I got the following message: can't open file 'testingPython.py': [Errno 1] Operation not permitted

Program ended with exit code: 2"

OMEGAPREPARATION
Автор

Thank you Mike. Your "working directory" tip in options helped me fix my issue.

footsldr
Автор

now to real question is, do I have to do all this every time I want to run python?

theredloro
Автор

Excellent work. Too bad Apple makes it that much of a fandango to just code in Python.

rkbarry
Автор

Awesome new to xcode tried other instructions seemed not to work. My output window was hidden but didn't realize that was my issue until I saw it on your video.

bretb
Автор

I'd like to provide some points of feedback on this video:
1. The audio is way too quiet.
2. There's no mention that this is for Python 2. As one of the other commenters highlighted, you need to enter "which python3" into Terminal if using Python 3.
3. Why are you recording your entire desktop? Users with smaller screens (laptops or mobiles) can't read the text. Users trying to play the video side by side with Xcode to follow along can't read the text. Users with slower download speeds getting less than optimal video playback can't read the text. We don't need to see the outer half of the screen is empty desktop.

I appreciate the effort you've gone to to provide this tutorial, but the execution is wanting.

SchmySeymour
Автор

I tried step by step so many websites and thanks to you I found my problem and it runs well! Thank you :)

misia
Автор

Someone know how to fix an error code 2?

bramlinderss
Автор

Do you have to create a new argument every time you create a new file?

drewmilwahkee
Автор

I was having some issues from links on other sites and found this video to be very helpful thank you sir!

TheRicherthanyouguy
Автор

do I have to do the same thing everytime i create a new file

HuongLe-ybvd
Автор

how should I do it if I want to work with python 3, because I noticed this only works with the python your computer already has installed.

krisduran
Автор

Hi. I keep getting a permission error when trying to run my file: 
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
Any idea how to fix it?

aDesignEducation
Автор

hey, it says can't open file where I'm supposed to see the output. what to do?

kzy
Автор

Thank you! This runs pretty well. Is there anyway to debug python in xcode?

hangchen
Автор

Great video!!!
Now the real question is how do you get Modules in the the xcode

Example: ModuleNotFoundError: No module named 'openpyxl'

phantom
Автор

If I wanted to use python 3.x, should I type `which python3` and use that instead?

JacksMacintosh
Автор

I did that and it ran, but it resulted in : can't open file 'File.py': [Errno 1] Operation not permitted
Program ended with exit code: 2


so send help...?

pistachio
Автор

So glad this was the first thing that popped up..

jeremiahthomas
Автор

Help me please.
I was making all, like in your video, but after pressing "Run" in the xcode console appears such text:

can't open file 'testingPython.py': [Errno 1] Operation not permitted
Program ended with exit code: 2

I have Catalina macOS.

yph
join shbcf.ru