@YukariChannel · Post #1046 · 13.01.2023 г., 11:50
#Ingress#Subscription#Badge
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #210 · 3 фев.
Что делать если нужно поставить какую-то Python-библиотеку а root-прав нет? То есть в систему библиотеку никак и ничего не поставить. Есть как минимум два способа это решить правильно! 🔸 Сделать виртуальное окружение и ставить там что угодно. Это позволит создать полностью независимое исполняемое окружение для ваших приложений. Все библиотеки будут храниться в домашней директории юзера а значит доступ на запись имеется. Создать очень просто: python3 -m venv ~/venvs/myenvname Теперь активируем окружение # Linux source ~/venvs/myenvname/bin/activate # Windows %userprofile%\venvs\myenvname\Scripts\activate.bat Можно ставить любые библиотеки и запускать приложение. Это стандартный метод работы с любым проектом. Если еще не используете его, то пора начинать. Даже при наличии root доступа! 🔸 Бывает, что нет возможности запустить приложение из своего виртуального окружения. Например, его запускает какой-то сервис от вашего юзера и вставить активацию окружения вы не можете. В этом случае можно установить библиотеки для Python не глобально в систему, а только для юзера. Выполните этот код в консоли: python3 -m site Вы получите что-то такое: sys.path = [ '/home/user', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/user/.local/lib/python3.7/site-packages', ... ] USER_BASE: '/home/user/.local' USER_SITE: '/home/user/.local/lib/python3.7/site-packages' ENABLE_USER_SITE: True Нас интересует параметр USER_SITE. Это путь к пользовательским библиотекам, которые доступны по умолчанию, если они есть. Именно сюда будут устанавливаться модули если добавить флаг --user при установке чего-либо через pip pip install --user requests Для этой команды не нужны root-права. После неё можно запускать системный интерпретатор без виртуальных окружений и установленная библиотека будет доступна для текущего юзера. Параметр USER_BASE показывает корневую директорию для хранения user-библиотек. Её можно изменить с помощью переменной окружения PYTHONUSERBASE export PYTHONUSERBASE=~/pylibs python3 -m site ... USER_BASE: '/home/user/pylibs' USER_SITE: '/home/user/pylibs/lib/python3.7/site-packages' Получается некоторое подобие виртуального окружения для бедных 😁 которое можно менять через эту переменную (не делайте так!Лучше venv!) 🔸 Дописывание пути в PYTHONPATH Этот способ не входит в список "двух правильных", но тоже рабочий. Здесь придётся сделать всё несколько сложней. Сначала ставим библиотеку в любое место указывая путь установки pip3 install -t ~/mylibs modulename Библиотека установится без привязки к какому-либо интерпретатору. То есть по умолчанию не будет видна. Теперь в нужный момент добавляем этот путь в sys.path или в PYTHONPATH. Не буду советовать так делать. Единственный раз когда этот способ мне пригодился и решил поставленную задачу, это при создании общей библиотеки для кластера компьютеров. Модули лежат в сети и подгружаются для всех из одного и того же места. То есть обновлять файлы требуется только один раз а не на всех хосты отдельно. Минусы такого подхода: ▫️Нужно всем хостам пробить нужный путь в .bashrc или ещё куда-то чтобы он сетапился на старте. ▫️Чем больше хостов тем больше нагрузка на сеть. Иногда такой способ не подходит именно по этой причине. Тогда Ansible вам в помощь. ▫️Не очень подходит если хосты с разными операционками. Некоторые библиотеки различаются для Linux и Windows (там, где есть бинарники) и приходится мудрить более сложные схемы. #tricks#basic
Пребарај: #subscription
@YukariChannel · Post #1046 · 13.01.2023 г., 11:50
#Ingress#Subscription#Badge
Hashtags
@botsgram_cu · Post #3182 · 26.11.2020 г., 19:19
@CineNoticiasbot🇪🇸 Qué puede hacer este bot? Este es un bot de canales de noticias de cine, es una interesante opción para mantenerte actualizado sobre el séptimo arte Idioma: ESPAÑOL (visto en @BotsGram.cu) #manybot, #create, #subscription
Hashtags
@AppPie · Post #2307 · 10.01.2025 г., 01:05
#News 哔哩哔哩更新大会员服务协议,限制单账号同时使用设备数量 哔哩哔哩发布 大会员服务协议 更新,主要调整了使用限制相关条款。新规将于 2025 年 1 月 16 日生效,具体变更如下: 终端限制 • 同一账号在同一时间最多可在 2 个终端设备使用会员服务 • 适用范围包括手机、电脑、平板、网页以及小程序等所有终端 • 手机端 24 小时内限制使用 2 个设备 会员服务包括但不限于: - 免费观看会员内容 - 特价付费单片内容观看等 违规处理 超出使用限制的账号可能面临服务中止或终止,平台保留追偿损失等进一步措施的权利。 #Bilibili#Subscription#UserPolicy 📮 频道 @AppPie
@call_updates · Post #53 · 07.06.2024 г., 18:01
⭐️ Callegram Pro for Telegram Stars Hi there, customers! After yesterday's update, we've switched our main payment method inside Telegram. You can now buy our Pro version using Telegram Stars. Just to remind you what you'll get with Pro: – Google Calendar sync with your Callegram account + reminders; – Increased limits for generating Google Meet links; – Unlimited linked Telegram groups where you can set up quick calls; – Updates with new Pro features; 🔒 Check our Pro plan here:t.me/CallegramBot/subscribe Check our ToS before purchase: https://callegram.com/tos #MiniApps#TelegramStars#Callegram#Subscription#Stars
@botsgram_cu · Post #3353 · 02.01.2021 г., 02:17
@GuideRobot Qué puede hacer este bot? Este bot te ofrece un catálogo de los mejores canales de telegram Idioma: Inglés (visto en @BotsGram_cu) #manybot, #collection, #create, #subscription, #telegram
@venturevillagewall · Post #3609 · 21.12.2024 г., 08:00
Disrupting Subscription Models A startup aimed at transforming content purchasing models could emerge as a billion-dollar company. Current subscription systems frustrate users who prefer one-time access without ongoing commitments. With over 70% of subscribers dropping off within 3-6 months, creators are hesitant to implement one-time payment options, as they often yield lower revenue. However, innovation in this area could change the game. For more details, visit FastFounder. #Startup#Subscription#Content#Innovation#Revenue#BusinessModel#Fintech#CustomerExperience#Payment#MarketTrends
@CryptoM · Post #64746 · 09.04.2026 г., 17:41
🚀 AI TRENDS | OpenAI to Launch $100 Monthly ChatGPT Pro Subscription OpenAI has announced plans to introduce a new subscription tier for its ChatGPT service, priced at $100 per month. According to Jin10, this new offering, named ChatGPT Pro, aims to provide enhanced features and capabilities for users seeking more advanced functionalities. The move is part of OpenAI's strategy to expand its product offerings and cater to a broader range of user needs. The subscription is expected to include additional benefits, although specific details on the features have not been disclosed yet. This development reflects OpenAI's ongoing efforts to monetize its AI technologies while continuing to innovate in the field of artificial intelligence. #OpenAI#ChatGPTPro#AITrends#Subscription#ArtificialIntelligence#TechNews#AI#ChatGPT#Monetization#AIInnovation
@venturevillagewall · Post #3446 · 19.12.2024 г., 13:01
Insight on Pricing Strategy A Telegram bot for online store owners is launching with a subscription price of 320 rubles per month, which is lower than competitors to attract users. The creator struggled with pricing, consulting friends and family, leading to a divide in opinions. A seasoned relative advised that the price might be too low, suggesting a higher price to target a more serious audience. The discussion emphasizes that proper pricing should balance economic viability and marketing return, stating that high perceived value justifies higher pricing. Key takeaway: avoid relying on inexperienced opinions about business strategies. #Subscription#Ecommerce#PricingStrategy#MarketResearch#OnlineStore#BusinessAdvice#UserFeedback#ProductValue#Entrepreneur#Marketing#TelegramBot#ValuePricing#MarketCompetition#ConsumerInsights#Startup#BusinessModel
@venturevillagewall · Post #3588 · 20.12.2024 г., 10:29
AI Marketer Launches for $29 Introducing Nikolai's service, MarketOwl, which provides virtual marketing teams for small businesses. The AI-driven platform automates content creation and identifies potential customers. Currently, it supports around 100 users monthly, generating about $3k in revenue. The concept originated from Nikolai's observations of small companies lacking marketing resources, expertise, and time. After initial failures with a marketing strategy MVP, he pivoted to develop the AI marketer. Engagements in a dedicated subreddit led to high conversion rates for subscriptions. Successful products arise from addressing real audience problems. To effectively enter the market, consider using the Plan-Kapkan consisting of 35 steps for launching. #MarketOwl#AI#Marketing#ContentCreation#SmallBusiness#SaaS#VirtualTeam#Startup#Entrepreneurship#MVP#ProblemSolving#Automation#CustomerAcquisition#AudienceEngagement#Subscription#Revenue#Strategy#PlanKapkan#BusinessGrowth#MarketingTools
@botsgram_cu · Post #3233 · 04.12.2020 г., 02:27
@junction_bot Qué puede hacer este bot? Este bot puede recopilar publicaciones de tus canales favoritos de Telegram, para que puedas leerlas como un servicio de noticias. ¡También puede copiar mensajes entre canales y bots, filtrar anuncios, modificar mensajes y mucho más! Idioma: Inglés, Ruso, Turco (visto en @BotsGram_cu) #link, #word, #project, #feed, #messages, #group, #subscription, #telegram, #share, #channel, #questions, #command, #inline, #join, #twitter, #favorite, #collect, #news, #enter, #place, #free, #message, #welcome