Python Forum
run my script in a spefic version or any later one
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run my script in a spefic version or any later one
#11
If you have installed 3.6 you should use it. For example.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#12
the script is running on unknown systems. it is not known which versions are installed on it. only one file is "installed" and it is copied into place by that user downloading the file and copying it to where they want to have it (such as /usr/local/bin or a user home directory).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#13
(Oct-28-2019, 10:09 PM)Skaperen Wrote: only one file is "installed" and it is copied into place by that user downloading the file and copying it to where they want to have it (such as /usr/local/bin or a user home directory).
This is what we did back in old day download and install with different often bad solutions,now dos pip all this automatic.
It's a standard that have helped Python a lot.

Two ways a wheel could be your "installed" file that contain all.
# A wheel file download and install
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl

# PyPi a central distortion of wheels,all automatic download install
pip install tabulate 
Reply
#14
i'm fine with that as long as it downloads only from my server. i don't know how to redirect pip.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#15
You can run your own PyPi server search for setup,or the simplest way is just to have wheel on server.
Example in this post i make a wheel,so if i want to share can eg use my BitBucket Life 1.0.
So all instruction give to user is download and install.
pip install Life-1.0.0-py3-none-any.whl
The wheel did i make on Windows,but it will work fine on Linux or Mac.
Can example try to install to my Mint-19 distro and use Python 3.8,just using the link Life 1.0.
# Versions
tom@tom:~/Downloads$ python -V
Python 3.8.0
tom@tom:~/Downloads$ pip -V
pip 19.2.3 from /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/pip (python 3.8)

# Install
tom@tom:~/Downloads$ pip install Life-1.0.0-py3-none-any.whl
Processing ./Life-1.0.0-py3-none-any.whl
Installing collected packages: Life
Successfully installed Life-1.0.0

# Test that it work
tom@tom:~/Downloads$ python 
Python 3.8.0 (default, Oct 25 2019, 19:38:41) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from life import answer_to_life
>>> answer_to_life(999)
Wrong answer
>>> answer_to_life(13)
Wrong answer
>>> answer_to_life(42)
Right answer <~~~~42~~~~>
>>> exit()
Also when use wheel pip get befit like like show version,uninstall,..ect.
tom@tom:~/Downloads$ pip show Life
Name: Life
Version: 1.0.0
Summary: Answer to life
Home-page: nothing.com
Author: S
Author-email: p@p
License: UNKNOWN
Location: /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages
Requires: 
Required-by:
 
tom@tom:~/Downloads$ pip uninstall Life
Uninstalling Life-1.0.0:
  Would remove:
    /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/Life-1.0.0.dist-info/*
    /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/life.py
Proceed (y/n)? y
  Successfully uninstalled Life-1.0.0
Reply
#16
how do i tell someone how to install from my server? assume, for example, it is named piptjeneren.com.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#17
(Oct-29-2019, 10:57 PM)Skaperen Wrote: how do i tell someone how to install from my server?
The simplest way is just to have wheel on server then give link to that file.
Just like i did in post over,so if you or anyone else download Life 1.0 the the only instruction is to install is this.
This work on all OS.
pip install Life-1.0.0-py3-none-any.whl
The other way is to run own PyPi sever,the have to search for setup own PyPi server .
Reply
#18
so what would the complete set of instructions for an end user who has not done anything special for python or pypi on their system be? i was hoping it could be something simple like:
pip install [email protected]:packagename
but it seems pip is not very network oriented other than its own server.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020