Learn to program with Minecraft - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Learn to program with Minecraft (/thread-14027.html) Pages:
1
2
|
Learn to program with Minecraft - SheeppOSU - Nov-11-2018 I did everything write but the import of minecraft on python wont work. Did they update the code to import it. The book says,"from mcpi.minecraft import Minecraft" The error message is this:
RE: Learn to program with Minecraft - Larz60+ - Nov-12-2018 Quote:I did everything write but the import of minecraft on python wont work.well, not quite, You need to install 'mcpi' pip install mcpi RE: Learn to program with Minecraft - SheeppOSU - Nov-12-2018 It says install is invalid syntax Learn to program with Minecraft v2 - SheeppOSU - Nov-12-2018 I did everything write but the import of minecraft on python wont work. Did they update the code to import it. The book says,"from mcpi.minecraft import Minecraft". I also tried putting "pip install mcpi" on line 1. The error message is this:
RE: Learn to program with Minecraft - nilamo - Nov-12-2018 (Nov-12-2018, 03:23 PM)SheeppOSU Wrote: It says install is invalid syntax Pip is a program, not python syntax. Run pip install mcpi from the command line, not from within an interactive python session (or a python script).
RE: Learn to program with Minecraft - SheeppOSU - Nov-12-2018 I wrote it like this: pip install mcpi from mcpi.minecraft import Minecraft mc = Minecraft.create() RE: Learn to program with Minecraft - nilamo - Nov-12-2018 Right. Don't do that. RE: Learn to program with Minecraft - SheeppOSU - Nov-12-2018 (Nov-12-2018, 10:00 PM)nilamo Wrote: Right. Don't do that.How do I do it RE: Learn to program with Minecraft - snippsat - Nov-12-2018 (Nov-12-2018, 11:11 PM)SheeppOSU Wrote: How do I do itYou do it from command line(cmd). Look here how pip shall works and usage Python 3.6/3.7 and pip installation under Windows.
RE: Learn to program with Minecraft - Larz60+ - Nov-12-2018 follow this list verbatim:
|